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/DBStats/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/DBStats/Controller.php')
-rw-r--r-- | plugins/DBStats/Controller.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php index 22e95c23d6..33685052a3 100644 --- a/plugins/DBStats/Controller.php +++ b/plugins/DBStats/Controller.php @@ -29,7 +29,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function index() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); $view = new View('@DBStats/index'); $this->setBasicVariablesView($view); @@ -55,7 +55,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getDatabaseUsageSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -66,7 +66,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getTrackerDataSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -78,7 +78,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getMetricDataSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -90,7 +90,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getMetricDataSummaryByYear() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -102,7 +102,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getReportDataSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -114,7 +114,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getReportDataSummaryByYear() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -128,7 +128,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getIndividualReportsSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -142,7 +142,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getIndividualMetricsSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } @@ -157,7 +157,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin */ public function getAdminDataSummary() { - Piwik::checkUserIsSuperUser(); + Piwik::checkUserHasSuperUserAccess(); return $this->renderReport(__FUNCTION__); } } |