diff --git a/InvenTree/users/models.py b/InvenTree/users/models.py index 9dd117f1bd..7fc9145427 100644 --- a/InvenTree/users/models.py +++ b/InvenTree/users/models.py @@ -316,7 +316,8 @@ def update_group_roles(group, debug=False): permission = get_permission_object(perm) - group.permissions.add(permission) + if permission: + group.permissions.add(permission) if debug: print(f"Adding permission {perm} to group {group.name}")