Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Limit user filtering to staff/customers
Marcin Gębalabd00d9a4e495
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.pyindex d720d462c7..874f3c2327 100644--- a/saleor/graphql/account/types.py+++ b/saleor/graphql/account/types.py@@ -42,10 +42,7 @@ class User(CountableDjangoObjectType):description = 'Represents user data.'interfaces = [relay.Node]model = get_user_model()- filter_fields = {- 'email': ['exact', 'icontains'],- 'default_shipping_address': ['exact'],- 'is_active': ['exact']}+ filter_fields = ['is_staff']def resolve_permissions(self, info, **kwargs):if self.is_superuser: