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-10-10 13:28:00 +0300
committerMichal Čihař <michal@cihar.com>2017-10-10 13:28:00 +0300
commit98964e2f59a010f288000b2fed5ee5b620b6a211 (patch)
tree5b8beda2c87c74bb75b04e3373936bd39ea5b94e /server_replication.php
parent9c9c22e5167ef54a565209736fe33f60904082ba (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.php2
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);