Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-12-04 05:04:02 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-12-04 05:04:02 +0300
commit9d71fc8e92e5b434fd69c7ab4b83a69169064cf3 (patch)
tree8cb2798746e4defb1a978cd758df72006ec419ae /core/Piwik.php
parent784b738f9c4a92c42a9d8e6b85c28a82a3af0a2f (diff)
Tracker refactoring
Diffstat (limited to 'core/Piwik.php')
-rw-r--r--core/Piwik.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index bc5244dd52..b4ce8e0694 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -299,8 +299,10 @@ class Piwik
public static function hasUserSuperUserAccess()
{
try {
- self::checkUserHasSuperUserAccess();
- return true;
+ $hasAccess = Access::getInstance()->hasSuperUserAccess();
+
+ return $hasAccess;
+
} catch (Exception $e) {
return false;
}