Skip to content

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

Limit user filtering to staff/customers

Marcin Gębalabd00d9a4e495
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.py
index 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: