diff options
author | Simon Rettberg | 2019-04-16 16:32:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-04-16 16:32:22 +0200 |
commit | a70286c218ca8da32257eef91ac6c64b919a94c1 (patch) | |
tree | 26fef6210a50619752de98e68518881bbfcb5909 /modules-available/serversetup-bwlp-ipxe | |
parent | [baseconfig] Fix default value display for entries not in DB yet (diff) | |
download | slx-admin-a70286c218ca8da32257eef91ac6c64b919a94c1.tar.gz slx-admin-a70286c218ca8da32257eef91ac6c64b919a94c1.tar.xz slx-admin-a70286c218ca8da32257eef91ac6c64b919a94c1.zip |
[serversetup-bwlp-ipxe] Fix permcheck for menu edit in menu list
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/page.inc.php | 2 |
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; |