mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1107 from eeintech/fix_postgres_migration
Fix PostGreSQL migration (permissions handler)
This commit is contained in:
commit
826c471179
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user