diff options
author | Udo Walter | 2018-01-10 16:46:13 +0100 |
---|---|---|
committer | Udo Walter | 2018-01-10 16:46:13 +0100 |
commit | 3601ceb43aaa9f85c8036ee465a99c9aedaff1c3 (patch) | |
tree | d8046089263f87682d896f5af08c2d6e65e5b84c /modules-available/locations/page.inc.php | |
parent | [statistics] added permissions to view client statistics, delete clients and ... (diff) | |
download | slx-admin-3601ceb43aaa9f85c8036ee465a99c9aedaff1c3.tar.gz slx-admin-3601ceb43aaa9f85c8036ee465a99c9aedaff1c3.tar.xz slx-admin-3601ceb43aaa9f85c8036ee465a99c9aedaff1c3.zip |
[locations] fixed root location not getting disabled in the dropdown if
the user does not have permisson for location 0
Diffstat (limited to 'modules-available/locations/page.inc.php')
-rw-r--r-- | modules-available/locations/page.inc.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules-available/locations/page.inc.php b/modules-available/locations/page.inc.php index 0cfa5b90..9112e810 100644 --- a/modules-available/locations/page.inc.php +++ b/modules-available/locations/page.inc.php @@ -446,7 +446,6 @@ class Page_Locations extends Page } $addAllowedLocs = User::getAllowedLocations("location.add"); - $addAllowedLocs[] = 0; $addAllowedList = Location::getLocations(0, 0, true); foreach ($addAllowedList as &$loc) { if (!in_array($loc["locationid"], $addAllowedLocs)) { |