FINAL final

This commit is contained in:
Flatlogic Bot 2026-02-13 18:49:58 +00:00
parent 907d0aa994
commit c9f4b0e275

View File

@ -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();