Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Simplify check condition for staff users
Unknown3271d3afda1a
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.pyindex c465528f24..952c68b9e4 100644--- a/saleor/graphql/order/types.py+++ b/saleor/graphql/order/types.py@@ -267,7 +267,7 @@ class Order(CountableDjangoObjectType):@staticmethoddef 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)