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:
-rw-r--r--core/Access.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Access.php b/core/Access.php
index b5b85abf21..0bb39263af 100644
--- a/core/Access.php
+++ b/core/Access.php
@@ -290,6 +290,10 @@ class Piwik_Access
*/
public function checkUserHasSomeAdminAccess()
{
+ if($this->isSuperUser())
+ {
+ return;
+ }
$idSitesAccessible = $this->getSitesIdWithAdminAccess();
if(count($idSitesAccessible) == 0)
{