summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/page.inc.php
diff options
context:
space:
mode:
authorUdo Walter2018-01-10 16:46:13 +0100
committerUdo Walter2018-01-10 16:46:13 +0100
commit3601ceb43aaa9f85c8036ee465a99c9aedaff1c3 (patch)
treed8046089263f87682d896f5af08c2d6e65e5b84c /modules-available/locations/page.inc.php
parent[statistics] added permissions to view client statistics, delete clients and ... (diff)
downloadslx-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.php1
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)) {