This commit is contained in:
Josué Tille 2020-04-03 22:17:50 +02:00
parent 2b3c368470
commit 60af7e0fe9
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -1139,7 +1139,7 @@ def app_setting(app, key, value=None, delete=False):
if value is None and not delete: if value is None and not delete:
try: try:
if any(key.startswith(word+"_") for word in ["unprotected", "protected", "skipped"]): if any(key.startswith(word+"_") for word in ["unprotected", "protected", "skipped"]):
logger.warning(legacy_settings_warning logger.warning(legacy_settings_warning)
# Well, here there are no solution to manage the root case # Well, here there are no solution to manage the root case
# so just ignore this case, I don't think that get this setting # so just ignore this case, I don't think that get this setting
# The only time that I see this is when we try to migrate to group-permission # The only time that I see this is when we try to migrate to group-permission
@ -1159,7 +1159,7 @@ def app_setting(app, key, value=None, delete=False):
if delete: if delete:
if key in app_settings: if key in app_settings:
if any(key.startswith(word+"_") for word in ["unprotected", "protected", "skipped"]): if any(key.startswith(word+"_") for word in ["unprotected", "protected", "skipped"]):
logger.warning(legacy_settings_warning logger.warning(legacy_settings_warning)
from permission import user_permission_list, user_permission_update, permission_delete from permission import user_permission_list, user_permission_update, permission_delete
permissions = user_permission_list(full=True, full_path=False)['permissions'] permissions = user_permission_list(full=True, full_path=False)['permissions']