mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: do not allow edit for setting_storage
This commit is contained in:
1 parent
efb8adfe6d
commit
0c81eea40a
3 files changed
+5
-1
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user