Merge pull request #1107 from eeintech/fix_postgres_migration

Fix PostGreSQL migration (permissions handler)
This commit is contained in:
Oliver 2020-11-06 07:58:56 +11:00 committed by GitHub
commit 826c471179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,6 +316,7 @@ def update_group_roles(group, debug=False):
permission = get_permission_object(perm)
if permission:
group.permissions.add(permission)
if debug:
@ -330,6 +331,7 @@ def update_group_roles(group, debug=False):
permission = get_permission_object(perm)
if permission:
group.permissions.remove(permission)
if debug: