mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix Plantage, rajoute la permission view_tickets
This commit is contained in:
parent
92751cb5cf
commit
e9d362db29
2 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,7 @@ class Migration(migrations.Migration):
|
||||||
options={
|
options={
|
||||||
'verbose_name': 'Ticket',
|
'verbose_name': 'Ticket',
|
||||||
'verbose_name_plural': 'Tickets',
|
'verbose_name_plural': 'Tickets',
|
||||||
|
'permissions': (('view_tickets', 'Can view a ticket object'),), 'verbose_name': 'Ticket', 'verbose_name_plural': 'Tickets',
|
||||||
},
|
},
|
||||||
bases=(re2o.mixins.AclMixin, models.Model),
|
bases=(re2o.mixins.AclMixin, models.Model),
|
||||||
),
|
),
|
||||||
|
|
|
@ -40,6 +40,9 @@ class Ticket(AclMixin, models.Model):
|
||||||
solved = models.BooleanField(default=False)
|
solved = models.BooleanField(default=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
permissions = (
|
||||||
|
("view_tickets", _("Can view a ticket object")),
|
||||||
|
)
|
||||||
verbose_name = _("Ticket")
|
verbose_name = _("Ticket")
|
||||||
verbose_name_plural = _("Tickets")
|
verbose_name_plural = _("Tickets")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue