Browse Source

Fix tickets permissions name

274-on-a-fresh-install-about-page-fails^2
Gabriel Detraz 6 years ago
committed by root
parent
commit
c356613a83
  1. 4
      tickets/models.py

4
tickets/models.py

@ -74,13 +74,13 @@ class Ticket(AclMixin, models.Model):
""" Check that the user has the right to view the ticket
or that it is the author"""
if (
not user_request.has_perm("tickets.view_ticket")
not user_request.has_perm("tickets.view_tickets")
and self.user != user_request
):
return (
False,
_("You don't have the right to view other tickets than yours."),
("tickets.view_ticket",),
("tickets.view_tickets",),
)
else:
return True, None, None

Loading…
Cancel
Save