mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Remove non-editable variables from Config in web UI
This commit is contained in:
parent
1bf72bb55c
commit
e8b3dbc348
1 changed files with 4 additions and 0 deletions
|
|
@ -141,6 +141,10 @@ class Config:
|
|||
elif setting not in config and plugins_settings[setting]["default"] == v:
|
||||
variables.pop(k)
|
||||
continue
|
||||
elif config[setting]["method"] not in ("default", "ui"):
|
||||
flash(f"Variable {k} is not editable as is it managed by the {config[setting]['method']}, ignoring it", "error")
|
||||
variables.pop(k)
|
||||
continue
|
||||
|
||||
try:
|
||||
if re_search(plugins_settings[setting]["regex"], v):
|
||||
|
|
|
|||
Loading…
Reference in a new issue