diff options
| author | Simon Rettberg | 2025-05-22 16:07:03 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-05-22 16:07:03 +0200 |
| commit | 19160ec62cec3b6e436590b16ebb2b329ef5d55b (patch) | |
| tree | bdfc8a89829fde79133b839d4cb52a27c7b3e520 /modules-available/runmode/page.inc.php | |
| parent | [locationinfo] URLpanel: Browser accept-language and screen rotation (diff) | |
| download | slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.gz slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.tar.xz slx-admin-19160ec62cec3b6e436590b16ebb2b329ef5d55b.zip | |
Add audit logging of POST actions
Diffstat (limited to 'modules-available/runmode/page.inc.php')
| -rw-r--r-- | modules-available/runmode/page.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules-available/runmode/page.inc.php b/modules-available/runmode/page.inc.php index 5654456a..adc12541 100644 --- a/modules-available/runmode/page.inc.php +++ b/modules-available/runmode/page.inc.php @@ -118,7 +118,7 @@ class Page_RunMode extends Page $deleted = 0; } Message::addSuccess('runmode.enabled-removed-save', $active, $deleted); - Util::redirect('?do=runmode&module=' . $module . '&modeid=' . $modeId, true); + Util::redirect('?do=runmode&module=' . $module . '&modeid=' . $modeId, null, true); } private function handleDeleteMachine() @@ -168,13 +168,13 @@ class Page_RunMode extends Page $module = Module::get($moduleId); if ($module === false) { Message::addError('main.no-such-module', $moduleId); - Util::redirect('?do=runmode'); + Util::redirect('?do=runmode', 404); } $module->activate(1, false); $config = RunMode::getModuleConfig($moduleId); if ($config === null) { Message::addError('module-hasnt-runmode', $moduleId); - Util::redirect('?do=runmode'); + Util::redirect('?do=runmode', 400); } // Given modeId? $modeId = Request::get('modeid', false, 'string'); @@ -266,11 +266,11 @@ class Page_RunMode extends Page } if ($modeName === false) { Message::addError('invalid-modeid', $moduleId, $modeId); - Util::redirect($redirect); + Util::redirect($redirect, 404); } if (!RunMode::getModuleConfig($moduleId)->allowGenericEditor) { Message::addError('runmode.cannot-edit-module', $moduleId); - Util::redirect($redirect); + Util::redirect($redirect, 400); } // Permissions if ($config->userHasPermission(null)) { |
