Do not show profile buttons for inactive customer shoppers

This commit is contained in:
Lance Edgar 2023-10-25 12:20:04 -05:00
parent cf1ef23996
commit b5c68831b5

View file

@ -424,6 +424,7 @@ class CustomerView(MasterView):
people.setdefault(person.uuid, person)
for shopper in customer.shoppers:
if shopper.active:
person = shopper.person
people.setdefault(person.uuid, person)