mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Wrong name for basic django permission change
This commit is contained in:
parent
3b857457d8
commit
8c7b1bfb41
1 changed files with 2 additions and 2 deletions
|
@ -197,13 +197,13 @@ class CommentTicket(AclMixin, models.Model):
|
||||||
""" Check that the user has the right to edit the ticket comment
|
""" Check that the user has the right to edit the ticket comment
|
||||||
or that it is the author"""
|
or that it is the author"""
|
||||||
if (
|
if (
|
||||||
not user_request.has_perm("tickets.edit_commentticket")
|
not user_request.has_perm("tickets.change_commentticket")
|
||||||
and (self.parent_ticket.user != user_request or self.parent_ticket.user != self.created_by)
|
and (self.parent_ticket.user != user_request or self.parent_ticket.user != self.created_by)
|
||||||
):
|
):
|
||||||
return (
|
return (
|
||||||
False,
|
False,
|
||||||
_("You don't have the right to edit other tickets comments than yours."),
|
_("You don't have the right to edit other tickets comments than yours."),
|
||||||
("tickets.edit_commentticket",),
|
("tickets.change_commentticket",),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return True, None, None
|
return True, None, None
|
||||||
|
|
Loading…
Reference in a new issue