diff options
author | Simon Rettberg | 2017-12-01 15:03:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 15:03:58 +0100 |
commit | 273d5b0827d4c5c791a6cf3d25b849bab13e7fab (patch) | |
tree | f2b212853dd70202284c63d32112265a787d4d59 /inc/user.inc.php | |
parent | [locations] Move overlap warnings to top (diff) | |
download | slx-admin-273d5b0827d4c5c791a6cf3d25b849bab13e7fab.tar.gz slx-admin-273d5b0827d4c5c791a6cf3d25b849bab13e7fab.tar.xz slx-admin-273d5b0827d4c5c791a6cf3d25b849bab13e7fab.zip |
[inc/User] Fix getAllowedLocations for legacy permission manager
Diffstat (limited to 'inc/user.inc.php')
-rw-r--r-- | inc/user.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php index 8c1608ae..1e6a2d0e 100644 --- a/inc/user.inc.php +++ b/inc/user.inc.php @@ -47,6 +47,8 @@ class User $permission = $module ? $module->getIdentifier().".".$permission : $permission; return PermissionUtil::getAllowedLocations(self::$user['userid'], $permission); } + if (self::$user['permissions'] & Permission::get('superadmin')) + return array_keys(Location::getLocationsAssoc()); return array(); } |