diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-05-05 18:45:34 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-05-05 18:45:34 +0400 |
commit | 8b0d355772703a0a8fb862a5f210120bca9d1bc0 (patch) | |
tree | 5373afd2eb51c3355736ab745337856b38913d2f | |
parent | 3dcc65909d5a83033b59617de1fea9d29764e601 (diff) |
Fixes #1326
checkUserHasSomeAdminAccess() fails when there is no website yet. Making it work if user is super user.
-rw-r--r-- | core/Access.php | 4 |
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) { |