summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe
diff options
context:
space:
mode:
authorSimon Rettberg2025-08-04 16:05:24 +0200
committerSimon Rettberg2025-08-04 16:05:24 +0200
commit836f6b8e2b0051eb3a46d3b1232b9cdfab1ccdf9 (patch)
tree3ed1740338e631c611aca9e8cd28d6a995ca0ef6 /modules-available/serversetup-bwlp-ipxe
parentImplicitly nullable types are deprecated in PHP 8.3, make explicit (diff)
downloadslx-admin-836f6b8e2b0051eb3a46d3b1232b9cdfab1ccdf9.tar.gz
slx-admin-836f6b8e2b0051eb3a46d3b1232b9cdfab1ccdf9.tar.xz
slx-admin-836f6b8e2b0051eb3a46d3b1232b9cdfab1ccdf9.zip
A few more HTTP code audit log fixups
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php
index 3bbe50dd..0ddbcfd4 100644
--- a/modules-available/serversetup-bwlp-ipxe/page.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php
@@ -1031,9 +1031,11 @@ class Page_ServerSetup extends Page
$locationId = Request::post('locationid', false, 'int');
$loc = Location::get($locationId);
if ($loc === false) {
+ Audit::overrideResponseCode(404);
Message::addError('locations.invalid-location-id', $locationId);
return;
}
+ Audit::overrideResponseCode(200);
User::assertPermission('ipxe.menu.assign', $locationId);
$menuId = Request::post('menuid', false, 'int');
if ($menuId === 0) {