mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 14:07:47 -04:00
settings: enforce administrator-managed lock settings (#3897)
port 2.0
(cherry picked from commit 404c9672d7)
This commit is contained in:
1 parent
4e0985fbbb
commit
5ef5a7391b
18 files changed
+526
-56
No files matched your search
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user