diff options
author | Udo Walter | 2017-10-03 20:07:15 +0200 |
---|---|---|
committer | Udo Walter | 2017-10-03 20:07:15 +0200 |
commit | 3941f2482e26590e7f0f24147bc87740ab7f18af (patch) | |
tree | b782293185db8ea8847b335628fb709f2928b69f /modules-available/permissionmanager/inc/permissionutil.inc.php | |
parent | [internetaccess] implemented new permission system (diff) | |
download | slx-admin-3941f2482e26590e7f0f24147bc87740ab7f18af.tar.gz slx-admin-3941f2482e26590e7f0f24147bc87740ab7f18af.tar.xz slx-admin-3941f2482e26590e7f0f24147bc87740ab7f18af.zip |
[locations] implemented new permission system
Diffstat (limited to 'modules-available/permissionmanager/inc/permissionutil.inc.php')
-rw-r--r-- | modules-available/permissionmanager/inc/permissionutil.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/permissionmanager/inc/permissionutil.inc.php b/modules-available/permissionmanager/inc/permissionutil.inc.php index df877520..5c3eef58 100644 --- a/modules-available/permissionmanager/inc/permissionutil.inc.php +++ b/modules-available/permissionmanager/inc/permissionutil.inc.php @@ -45,7 +45,7 @@ class PermissionUtil } $allowedLocations = array_keys($allowedLocations); $locations = Location::getTree(); - if (count($allowedLocations) == 1 && $allowedLocations[0] == "0") { + if (in_array("0", $allowedLocations)) { $allowedLocations = array_map("intval", Location::extractIds($locations)); } else { $allowedLocations = self::getSublocations($locations, $allowedLocations); |