Do not show profile buttons for inactive customer shoppers
This commit is contained in:
parent
cf1ef23996
commit
b5c68831b5
|
@ -424,8 +424,9 @@ class CustomerView(MasterView):
|
|||
people.setdefault(person.uuid, person)
|
||||
|
||||
for shopper in customer.shoppers:
|
||||
person = shopper.person
|
||||
people.setdefault(person.uuid, person)
|
||||
if shopper.active:
|
||||
person = shopper.person
|
||||
people.setdefault(person.uuid, person)
|
||||
|
||||
for person in customer.people:
|
||||
people.setdefault(person.uuid, person)
|
||||
|
|
Loading…
Reference in a new issue