Let's not remove all_users here since it shall be added if visitors are allowed

This commit is contained in:
Alexandre Aubin 2019-12-02 20:41:42 +01:00
parent e9c01c2f89
commit d966407ff0

View file

@ -119,7 +119,7 @@ class MyMigration(Migration):
# Migrate classic public app still using the legacy unprotected_uris # Migrate classic public app still using the legacy unprotected_uris
if app_setting(app, "unprotected_uris") == "/" or app_setting(app, "skipped_uris") == "/": if app_setting(app, "unprotected_uris") == "/" or app_setting(app, "skipped_uris") == "/":
user_permission_update(app+".main", remove="all_users", add="visitors", sync_perm=False) user_permission_update(app+".main", add="visitors", sync_perm=False)
permission_sync_to_user() permission_sync_to_user()