diff options
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-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; |