Skip to content
Snippets Groups Projects
Verified Commit eaf9a390 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Run bulk_update on Right instances and not Right IDs

parent 3eef83a0
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ def migrate_repository_rights(apps, schema):
if right and right.level < repo_right.level:
# If the current access level < the one defined at repository level, update it
right.level = repo_right.level
to_update.append(right.id)
to_update.append(right)
# Otherwise create a new right on the worker for this user or group
elif not right:
to_create.append(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment