From 6b8da10debdff0b83d8555ab60a457048d7e629a Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 5 May 2021 18:28:19 +0300 Subject: [PATCH] Fix command authority check. --- module/Core/Command.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/Core/Command.hpp b/module/Core/Command.hpp index 422eb3de..d6a83205 100644 --- a/module/Core/Command.hpp +++ b/module/Core/Command.hpp @@ -1872,7 +1872,10 @@ public: bool AuthCheck(const Object & invoker) { // Do we need explicit authority verification? - if (!m_Protected) { /* Anyone can invoke this command */ } + if (!m_Protected) + { + return true; // Anyone can invoke this command + } // Was there a custom authority inspector specified? else if (!m_OnAuth.IsNull()) {