Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Apply code review suggestion

IKarbowiak354cb8caf0a6
diff --git a/saleor/graphql/account/mutations/permission_group.py b/saleor/graphql/account/mutations/permission_group.py
index 345501e789..1e909af0ac 100644
--- a/saleor/graphql/account/mutations/permission_group.py
+++ b/saleor/graphql/account/mutations/permission_group.py
@@ -284,9 +284,9 @@ class PermissionGroupUpdate(PermissionGroupCreate):
Requestor cannot manage users with wider scope of permissions.
"""
- users = cleaned_input[field]
if requestor.is_superuser:
return
+ users = cleaned_input[field]
out_of_scope_users = get_out_of_scope_users(requestor, users)
if out_of_scope_users:
# add error