mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added check for remove too
This commit is contained in:
parent
0b76d1d036
commit
684db67733
@ -331,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