Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-07-18 15:53:46 +0300
committerMichal Čihař <michal@cihar.com>2017-07-18 15:55:24 +0300
commit41b045f1307dc1e6551eb9155692e03bc91d72fc (patch)
tree099ed8abd05b5601617e14dccdb2fd6ca0e7730d /server_privileges.php
parent54466d68c673ed599e30a5ff80b7ccd3080b658a (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.php5
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