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:
@@ -444,9 +444,14 @@ class ConfigService
|
||||
|
||||
public function UpdateConfig($name, $value)
|
||||
{
|
||||
$payload = ['value' => $value];
|
||||
if (SuperAdminProgramSettingsOverlay::isRuntime((string) $name)) {
|
||||
$payload['can_edit'] = 1;
|
||||
}
|
||||
|
||||
return Setting::updateOrCreate(
|
||||
['key' => $name],
|
||||
['value' => $value]
|
||||
$payload
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user