From 41b045f1307dc1e6551eb9155692e03bc91d72fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Jul 2017 14:53:46 +0200 Subject: [PATCH] Show warning in case user can only display privileges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13442 Signed-off-by: Michal Čihař --- server_privileges.php | 5 +++++ 1 file changed, 5 insertions(+) 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