core: do not allow edit for setting_storage

This commit is contained in:
undefined committed 2022-10-03 16:38:08 +08:00
1 parent efb8adfe6d
commit 0c81eea40a
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -223,6 +223,7 @@ class HomeSecurityHandler extends Handler {
function set(s: Setting, key: string, value: any) {
if (s) {
if (s.family === 'setting_storage') return undefined;
if (s.flag & setting.FLAG_DISABLED) return undefined;
if ((s.flag & setting.FLAG_SECRET) && !value) return undefined;
if (s.type === 'boolean') {