diff --git a/api/save_settings.php b/api/save_settings.php index f852eae..31fdd7b 100644 --- a/api/save_settings.php +++ b/api/save_settings.php @@ -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();