diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2014-01-27 01:32:22 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2014-01-27 01:32:22 +0400 |
commit | 56bddb5325dab6b7ff3400c99208d08f454b6743 (patch) | |
tree | 4893b27fcc6237ebee9bc9897a087590158294d3 /plugins/Login/Controller.php | |
parent | 8f4e45e1f51e6d87d39c6479c0dc281788aee81a (diff) |
refs #4565 do not allow logme for any super user
Diffstat (limited to 'plugins/Login/Controller.php')
-rw-r--r-- | plugins/Login/Controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php index bd276024e8..3278717611 100644 --- a/plugins/Login/Controller.php +++ b/plugins/Login/Controller.php @@ -138,8 +138,8 @@ class Controller extends \Piwik\Plugin\Controller } $login = Common::getRequestVar('login', null, 'string'); - if ($login == Piwik::getConfigSuperUserLogin()) { - throw new Exception(Piwik::translate('Login_ExceptionInvalidConfigSuperUserAuthenticationMethod', array("logme"))); + if (Piwik::hasTheUserSuperUserAccess($login)) { + throw new Exception(Piwik::translate('Login_ExceptionInvalidSuperUserAccessAuthenticationMethod', array("logme"))); } $currentUrl = 'index.php'; |