diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-20 21:56:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-20 21:56:29 +0300 |
commit | 9523ac746bb27a7868d50acee0b99d14724a7f12 (patch) | |
tree | dd9d931a6322e57a80f6af26fc3e5c50717e7bf0 | |
parent | 5b66f7a00e8f3868366cdf792ac15162267f6848 (diff) | |
download | plus-9523ac746bb27a7868d50acee0b99d14724a7f12.tar.gz plus-9523ac746bb27a7868d50acee0b99d14724a7f12.tar.bz2 plus-9523ac746bb27a7868d50acee0b99d14724a7f12.tar.xz plus-9523ac746bb27a7868d50acee0b99d14724a7f12.zip |
Allow any gm commands if group have permission all_commands.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 9f99ecf37..7a98393ef 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -166,6 +166,11 @@ bool PopupMenu::isAllowCommand(const ServerCommandTypeT command) return true; } #endif + if (mGroup->mPermissions[CAST_SIZE(ServerPermissionType::all_commands)] == + Enable_true) + { + return true; + } const ServerCommandEnable::Type enabled = mGroup->mCommands[CAST_SIZE(command)]; return (enabled & ServerCommandEnable::Self) != 0; |