Skip to content

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

Simplify check condition for staff users

Unknown3271d3afda1a
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.py
index c465528f24..952c68b9e4 100644
--- a/saleor/graphql/order/types.py
+++ b/saleor/graphql/order/types.py
@@ -267,7 +267,7 @@ class Order(CountableDjangoObjectType):
@staticmethod
def resolve_fulfillments(self, info):
user = info.context.user
- if user.is_authenticated and user.is_active and user.is_staff:
+ if user.is_staff:
qs = self.fulfillments.all()
else:
qs = self.fulfillments.exclude(status=FulfillmentStatus.CANCELED)