Reproduced on Medusa v2.11.3
What happended?
- Create a promotion rule with a condition: customer group not in GroupX.
- Then log in as customer that has no customer groups assigned
- Try to applye the promotion
- Throws error and promotion is not being applied.
Expected behavior
Since the customer has no customer group, the customer is also not in GroupX and the promotion should be applied.
Actual behavior
No promotion applied.
Note, when you add the customer to GroupY (so different then the not in group) for example it does work. So it seems in the promotion module when the customer group relation is absent this throws an issue.