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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue