mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-24 20:37:06 +08:00
GUI: Add foolproof check for repo_group value not allowed in group
This commit is contained in:
parent
66ab12dd89
commit
6e425d1e6e
1 changed files with 3 additions and 1 deletions
|
|
@ -707,7 +707,9 @@ def config_gui(full_config: dict, config_file: str):
|
|||
value.remove(entry)
|
||||
|
||||
# check if value is inherited from group, and if so, delete it from repo config
|
||||
if full_config.g(inheritance_key) == value:
|
||||
# Also add a foolproof test since people could add repo_group to a group config
|
||||
# We're not allowing recursive groups !
|
||||
if full_config.g(inheritance_key) == value and key != "repo_group":
|
||||
full_config.d(active_object_key)
|
||||
continue
|
||||
# we also need to compare inherited values with current values for BytesConverter values
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue