mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Added check for remove too
This commit is contained in:
@ -331,6 +331,7 @@ def update_group_roles(group, debug=False):
|
||||
|
||||
permission = get_permission_object(perm)
|
||||
|
||||
if permission:
|
||||
group.permissions.remove(permission)
|
||||
|
||||
if debug:
|
||||
|
Reference in New Issue
Block a user