diff options
author | Michal Čihař <michal@cihar.com> | 2017-07-18 15:53:46 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-07-18 15:55:24 +0300 |
commit | 41b045f1307dc1e6551eb9155692e03bc91d72fc (patch) | |
tree | 099ed8abd05b5601617e14dccdb2fd6ca0e7730d /server_privileges.php | |
parent | 54466d68c673ed599e30a5ff80b7ccd3080b658a (diff) |
Show warning in case user can only display privileges
Fixes #13442
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'server_privileges.php')
-rw-r--r-- | server_privileges.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server_privileges.php b/server_privileges.php index 14897a70ee..4b36436b41 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -138,6 +138,11 @@ if (!$GLOBALS['is_superuser'] && !$GLOBALS['is_grantuser'] ); exit; } +if (! $GLOBALS['is_grantuser'] && !$GLOBALS['is_createuser']) { + $response->addHTML(Message::notice( + __('You do not have privileges to manipulate with the users!') + )->getDisplay()); +} /** * Checks if the user is using "Change Login Information / Copy User" dialog |