settings: enforce administrator-managed lock settings (#3897)

port 2.0

(cherry picked from commit 404c9672d7)
This commit is contained in:
alvarosth authored and dux-ci[bot] committed 2026-10-26 17:41:50 +00:00
1 parent 4e0985fbbb
commit 5ef5a7391b
18 files changed
+526 -56

No files matched your search

+2
View File
@@ -1104,6 +1104,8 @@ Item {
function set(key: string, value: string): string {
if (AdminPolicy.disableSettingsIpcSet)
return "SETTINGS_SET_DISABLED";
if (SettingsData.isManaged(key))
return "SETTINGS_SET_MANAGED";
if (!(key in SettingsData)) {
log.warn("Cannot set property, not found:", key);
return "SETTINGS_INVALID_KEY";