diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-04 14:59:48 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-04 14:59:48 +0400 |
commit | e4eadfee1c807c4e3c6b9ecec7d61cd30a5452f1 (patch) | |
tree | fbfc4de0e7d5209bf62c9807c6355b0a737836b8 /plugins/SitesManager/API.php | |
parent | 28a2f9b15cd146ad6bf5921e351767a6d9bd9392 (diff) | |
parent | 97cc6498c2886eb328d154a78fb51cce7427a91e (diff) |
Merge branch 'master' into uiunittests
Conflicts:
tests/PHPUnit/Integration/BlobReportLimitingTest.php
tests/PHPUnit/IntegrationTestCase.php
tests/PHPUnit/UI
Diffstat (limited to 'plugins/SitesManager/API.php')
-rw-r--r-- | plugins/SitesManager/API.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php index 1239c50489..5572c28494 100644 --- a/plugins/SitesManager/API.php +++ b/plugins/SitesManager/API.php @@ -340,6 +340,10 @@ class API extends \Piwik\Plugin\API || TaskScheduler::isTaskBeingExecuted()) ) { + if (Piwik::hasTheUserSuperUserAccess($_restrictSitesToLogin)) { + return Access::getInstance()->getSitesIdWithAtLeastViewAccess(); + } + $accessRaw = Access::getInstance()->getRawSitesWithSomeViewAccess($_restrictSitesToLogin); $sitesId = array(); foreach ($accessRaw as $access) { |