From 6775c96fdc5607a8450585f2c8fe14f8698ad000 Mon Sep 17 00:00:00 2001 From: islean Date: Tue, 28 Jan 2025 14:15:08 +0100 Subject: [PATCH] Add parentheses --- cg/services/orders/validation/rules/order/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cg/services/orders/validation/rules/order/rules.py b/cg/services/orders/validation/rules/order/rules.py index 39c6e9a679..88bbe17663 100644 --- a/cg/services/orders/validation/rules/order/rules.py +++ b/cg/services/orders/validation/rules/order/rules.py @@ -29,7 +29,7 @@ def validate_user_belongs_to_customer( customer_internal_id=order.customer, ) errors: list[UserNotAssociatedWithCustomerError] = [] - if not user.is_admin or has_access: + if not (user.is_admin or has_access): error = UserNotAssociatedWithCustomerError() errors.append(error) return errors