mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
fix displayed user tabs
This commit is contained in:
@ -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(
|
||||
{
|
||||
|
Reference in New Issue
Block a user