FINAL final
This commit is contained in:
parent
907d0aa994
commit
c9f4b0e275
@ -5,8 +5,8 @@ header('Content-Type: application/json');
|
||||
|
||||
$action = $_POST['action'] ?? '';
|
||||
|
||||
// Check if locked for all modifying actions except toggle_lock
|
||||
if ($action !== 'toggle_lock' && $action !== '') {
|
||||
// Check if locked for all modifying actions except toggle_lock and reset
|
||||
if ($action !== 'toggle_lock' && $action !== 'reset' && $action !== '') {
|
||||
$stmt = db()->prepare("SELECT setting_value FROM settings WHERE setting_key = 'is_locked'");
|
||||
$stmt->execute();
|
||||
$isLocked = $stmt->fetchColumn();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user