fix(settings): force can_edit=1 for runtime keys in API and DB writes

editable_only now includes RUNTIME_KEYS; normalize can_edit in responses.
UpdateConfig and montzar login persist can_edit=1. SQL override moved before COMMIT.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 20:15:28 +03:30
co-authored by Cursor
parent 027170a33f
commit b7eed369c6
4 changed files with 66 additions and 8 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class MontzarService
Setting::updateOrCreate(
['key' => 'montzar_token'],
['value' => $token, 'is_active' => 1]
['value' => $token, 'is_active' => 1, 'can_edit' => 1]
);
return $token;