diff options
author | Michal Čihař <michal@cihar.com> | 2017-10-10 13:28:00 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-10-10 13:28:00 +0300 |
commit | 98964e2f59a010f288000b2fed5ee5b620b6a211 (patch) | |
tree | 5b8beda2c87c74bb75b04e3373936bd39ea5b94e /server_replication.php | |
parent | 9c9c22e5167ef54a565209736fe33f60904082ba (diff) |
Remove is_superuser superglobal
Issue #11731
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'server_replication.php')
-rw-r--r-- | server_replication.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server_replication.php b/server_replication.php index 832f7ad74b..3e33c3232a 100644 --- a/server_replication.php +++ b/server_replication.php @@ -30,7 +30,7 @@ $scripts->addFile('vendor/zxcvbn.js'); /** * Checks if the user is allowed to do what he tries to... */ -if (! $is_superuser) { +if (! $GLOBALS['dbi']->isSuperuser()) { $html = Common::getHtmlForSubPageHeader('replication'); $html .= PhpMyAdmin\Message::error(__('No Privileges'))->getDisplay(); $response->addHTML($html); |