diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2014-01-23 05:26:57 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2014-01-23 05:26:57 +0400 |
commit | 81e7f870124d2356c1784355e54fb4716901dfec (patch) | |
tree | 0162170ba0d4e5d3e206897eeed50fd76285a2a2 /plugins/Dashboard/Controller.php | |
parent | 0c0ab33efd14b4223ef56f32c46879160f3ef7d5 (diff) |
refs #4564 introducing new methods to make user a user has superuser access. Old methods will still work but are marked as deprecated and they will be removed in a future release
Diffstat (limited to 'plugins/Dashboard/Controller.php')
-rw-r--r-- | plugins/Dashboard/Controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dashboard/Controller.php b/plugins/Dashboard/Controller.php index d8bab8424d..de7b90ec2f 100644 --- a/plugins/Dashboard/Controller.php +++ b/plugins/Dashboard/Controller.php @@ -222,7 +222,7 @@ class Controller extends \Piwik\Plugin\Controller { $this->checkTokenInUrl(); - if (!Piwik::isUserIsSuperUser()) { + if (!Piwik::hasUserSuperUserAccess()) { return '0'; } $login = Piwik::getCurrentUserLogin(); @@ -274,7 +274,7 @@ class Controller extends \Piwik\Plugin\Controller { $this->checkTokenInUrl(); - if (Piwik::isUserIsSuperUser()) { + if (Piwik::hasUserSuperUserAccess()) { $layout = Common::unsanitizeInputValue(Common::getRequestVar('layout')); $paramsBind = array('', '1', $layout, $layout); $query = sprintf('INSERT INTO %s (login, iddashboard, layout) VALUES (?,?,?) ON DUPLICATE KEY UPDATE layout=?', |