fix displayed user tabs

This commit is contained in:
Thomas Girod
2025-04-06 12:16:22 +02:00
parent b0e24350e2
commit fe5c685204
2 changed files with 92 additions and 2 deletions

View File

@ -242,7 +242,10 @@ class UserTabsMixin(TabedViewMixin):
if (
hasattr(user, "customer")
and user.customer
and (user == self.request.user or user.has_perm("counter.view_customer"))
and (
user == self.request.user
or self.request.user.has_perm("counter.view_customer")
)
):
tab_list.append(
{