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:
authormatthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2007-07-30 21:37:46 +0400
committermatthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2007-07-30 21:37:46 +0400
commit906e61aafe9ff1ff73b16c3738dd00d6d8bfbdd2 (patch)
tree1e1929fa7c09dee753344cb61245c4f964e763e1 /modules/Access.php
parent2157033b8b6a5aeeecad81dd0b094cbfd76a523b (diff)
- logging system DONE
- fixed bug Access - input filtering functions
Diffstat (limited to 'modules/Access.php')
-rwxr-xr-xmodules/Access.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/Access.php b/modules/Access.php
index 422360b983..830877f454 100755
--- a/modules/Access.php
+++ b/modules/Access.php
@@ -99,14 +99,11 @@ class Piwik_Access
public function checkUserHasSomeAdminAccess()
{
- if(!$this->isSuperUser)
- {
$idSitesAccessible = $this->getSitesIdWithAdminAccess();
if(count($idSitesAccessible) == 0)
{
throw new Exception("You can't access this resource as it requires an 'admin' access for at least one website.");
}
- }
}
public function checkUserHasAdminAccess( $idSites )
{
@@ -114,8 +111,6 @@ class Piwik_Access
{
$idSites = array($idSites);
}
- if(!$this->isSuperUser)
- {
$idSitesAccessible = $this->getSitesIdWithAdminAccess();
foreach($idSites as $idsite)
{
@@ -124,7 +119,6 @@ class Piwik_Access
throw new Exception("You can't access this resource as it requires an 'admin' access for the website id = $idsite.");
}
}
- }
}
public function checkUserHasViewAccess( $idSites )
@@ -133,8 +127,6 @@ class Piwik_Access
{
$idSites = array($idSites);
}
- if(!$this->isSuperUser)
- {
$idSitesAccessible = $this->getSitesIdWithAtLeastViewAccess();
foreach($idSites as $idsite)
{
@@ -143,7 +135,6 @@ class Piwik_Access
throw new Exception("You can't access this resource as it requires a 'view' access for the website id = $idsite.");
}
}
- }
}
}