mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix tickets permissions name
This commit is contained in:
parent
b0f02bcee5
commit
c356613a83
1 changed files with 2 additions and 2 deletions
|
@ -74,13 +74,13 @@ class Ticket(AclMixin, models.Model):
|
||||||
""" Check that the user has the right to view the ticket
|
""" Check that the user has the right to view the ticket
|
||||||
or that it is the author"""
|
or that it is the author"""
|
||||||
if (
|
if (
|
||||||
not user_request.has_perm("tickets.view_ticket")
|
not user_request.has_perm("tickets.view_tickets")
|
||||||
and self.user != user_request
|
and self.user != user_request
|
||||||
):
|
):
|
||||||
return (
|
return (
|
||||||
False,
|
False,
|
||||||
_("You don't have the right to view other tickets than yours."),
|
_("You don't have the right to view other tickets than yours."),
|
||||||
("tickets.view_ticket",),
|
("tickets.view_tickets",),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return True, None, None
|
return True, None, None
|
||||||
|
|
Loading…
Reference in a new issue