2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-01 13:06:45 +00:00

Added check for remove too

This commit is contained in:
eeintech 2020-11-05 09:37:01 -05:00
parent 0b76d1d036
commit 684db67733

View File

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