summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-20 21:56:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-20 21:56:29 +0300
commit9523ac746bb27a7868d50acee0b99d14724a7f12 (patch)
treedd9d931a6322e57a80f6af26fc3e5c50717e7bf0 /src
parent5b66f7a00e8f3868366cdf792ac15162267f6848 (diff)
downloadplus-9523ac746bb27a7868d50acee0b99d14724a7f12.tar.gz
plus-9523ac746bb27a7868d50acee0b99d14724a7f12.tar.bz2
plus-9523ac746bb27a7868d50acee0b99d14724a7f12.tar.xz
plus-9523ac746bb27a7868d50acee0b99d14724a7f12.zip
Allow any gm commands if group have permission all_commands.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp5
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;