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:
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r--plugins/UsersManager/API.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 5daded88c2..96734ff470 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -542,7 +542,11 @@ class Piwik_UsersManager_API
{
$idSites = Piwik_Site::getIdSitesFromIdSitesString($idSites);
}
-
+
+ if(empty($idSites))
+ {
+ throw new Exception('Specify at least one website ID in &idSites=');
+ }
// it is possible to set user access on websites only for the websites admin
// basically an admin can give the view or the admin access to any user for the websites he manages
Piwik::checkUserHasAdminAccess( $idSites );