summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-16 16:32:22 +0200
committerSimon Rettberg2019-04-16 16:32:40 +0200
commit96c05a1a7779d1fd52c22dc157bef1aa9f85f665 (patch)
tree2827994657a9c4746e1ecf3d1dec7066ed0341ab /modules-available/serversetup-bwlp-ipxe/page.inc.php
parent[baseconfig] Fix default value display for entries not in DB yet (diff)
downloadslx-admin-96c05a1a7779d1fd52c22dc157bef1aa9f85f665.tar.gz
slx-admin-96c05a1a7779d1fd52c22dc157bef1aa9f85f665.tar.xz
slx-admin-96c05a1a7779d1fd52c22dc157bef1aa9f85f665.zip
[serversetup-bwlp-ipxe] Fix permcheck for menu edit in menu list
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php')
-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;