mirror of
https://github.com/opnsense/core.git
synced 2026-12-04 01:18:36 +00:00
logging: throw readonly for clear action
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user