[fix] Sync permissions only after we're done migrating them, otherwise this triggers a shitload of warnings

This commit is contained in:
Alexandre Aubin 2019-10-31 20:36:25 +01:00
parent 3f80fe4e93
commit 089b3cf973

View file

@ -120,7 +120,7 @@ class MyMigration(Migration):
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", remove="all_users", add="visitors", sync_perm=False)
permission_sync_to_user() permission_sync_to_user()
def run(self): def run(self):