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