Skip to content

Commit

Permalink
Add parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
islean committed Jan 28, 2025
1 parent ef08c42 commit 6775c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cg/services/orders/validation/rules/order/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6775c96

Please sign in to comment.