logging: throw readonly for clear action

This commit is contained in:
Ad Schellevis committed 2026-11-19 16:45:02 +01:00
1 parent 1df933627c
commit 18e6cb5aee
1 file changed
+1
@@ -52,6 +52,7 @@ class LogController extends ApiControllerBase
$backend = new Backend();
if ($this->request->isPost() && substr($name, -6) == 'Action') {
if ($action == "clear") {
$this->throwReadOnly();
$backend->configdpRun("system clear log", array($module, $scope));
return ["status" => "ok"];
} else {