From a70286c218ca8da32257eef91ac6c64b919a94c1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 16 Apr 2019 16:32:22 +0200 Subject: [serversetup-bwlp-ipxe] Fix permcheck for menu edit in menu list --- modules-available/serversetup-bwlp-ipxe/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-55-g7522