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,8 +424,9 @@ class CustomerView(MasterView):
people.setdefault(person.uuid, person) people.setdefault(person.uuid, person)
for shopper in customer.shoppers: for shopper in customer.shoppers:
person = shopper.person if shopper.active:
people.setdefault(person.uuid, person) person = shopper.person
people.setdefault(person.uuid, person)
for person in customer.people: for person in customer.people:
people.setdefault(person.uuid, person) people.setdefault(person.uuid, person)