DB\IO error/warning log prefix remove, Admin\Backend acl default value check

This commit is contained in:
2023-07-14 15:10:03 +09:00
parent 5f223fb50d
commit 5dde52a309
2 changed files with 6 additions and 2 deletions

View File

@@ -164,6 +164,10 @@ class Backend
);
}
$this->default_acl = $set_default_acl_level ?? DEFAULT_ACL_LEVEL;
// if negative or larger than 100, reset to 0
if ($this->default_acl < 0 || $this->default_acl > 100) {
$this->default_acl = 0;
}
// queue key
if (preg_match("/^(add|save|delete|remove|move|up|down|push_live)$/", $this->action)) {