diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-30 04:19:58 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-30 16:37:37 +0400 |
commit | 8e82428416bd17832b5f059ae8b6933f301c4719 (patch) | |
tree | d2900459458e5107c24c86e5c6fcd5f03555fbe4 /plugins/Login/Controller.php | |
parent | 0401d7e82714a770a4835b1ad4a90a42fbed0f15 (diff) |
Deprecating Piwik::setUserHasSuperUserAccess() and switching to Access::doAsSuperUser().
Diffstat (limited to 'plugins/Login/Controller.php')
-rw-r--r-- | plugins/Login/Controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php index 3831e89c79..62c8b40740 100644 --- a/plugins/Login/Controller.php +++ b/plugins/Login/Controller.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\Login; use Exception; +use Piwik\Access; use Piwik\Auth as AuthInterface; use Piwik\Common; use Piwik\Config; @@ -278,7 +279,7 @@ class Controller extends \Piwik\Plugin\Controller // have to do this as super user since redirectToIndex checks if there's a default website ID for // the current user and if not, doesn't redirect to the requested action. TODO: this behavior is wrong. somehow. $self = $this; - Piwik::doAsSuperUser(function () use ($self) { + Access::doAsSuperUser(function () use ($self) { $self->redirectToIndex(Piwik::getLoginPluginName(), 'resetPasswordSuccess'); }); return null; |