summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-16 16:32:22 +0200
committerSimon Rettberg2019-04-16 16:32:22 +0200
commita70286c218ca8da32257eef91ac6c64b919a94c1 (patch)
tree26fef6210a50619752de98e68518881bbfcb5909
parent[baseconfig] Fix default value display for entries not in DB yet (diff)
downloadslx-admin-a70286c218ca8da32257eef91ac6c64b919a94c1.tar.gz
slx-admin-a70286c218ca8da32257eef91ac6c64b919a94c1.tar.xz
slx-admin-a70286c218ca8da32257eef91ac6c64b919a94c1.zip
[serversetup-bwlp-ipxe] Fix permcheck for menu edit in menu list
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php
index c1f7084d..a00a18a1 100644
--- a/modules-available/serversetup-bwlp-ipxe/page.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php
@@ -348,7 +348,7 @@ class Page_ServerSetup extends Page
$row['allowEdit'] = in_array(0, $allowedEdit);
} else {
$locations = explode(',', $row['locations']);
- $row['allowEdit'] = empty(array_diff($locations, $allowedEdit));
+ $row['allowEdit'] = in_array(0, $allowedEdit) || empty(array_diff($locations, $allowedEdit));
}
$row['locationCount'] = empty($locations) ? '' : count($locations);
$menuTable[] = $row;