8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +00:00

Fix Plantage, rajoute la permission view_tickets

This commit is contained in:
Gabriel Detraz 2019-09-17 01:45:00 +02:00 committed by root
parent 92751cb5cf
commit e9d362db29
2 changed files with 4 additions and 0 deletions

View file

@ -42,6 +42,7 @@ class Migration(migrations.Migration):
options={
'verbose_name': 'Ticket',
'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),
),

View file

@ -40,6 +40,9 @@ class Ticket(AclMixin, models.Model):
solved = models.BooleanField(default=False)
class Meta:
permissions = (
("view_tickets", _("Can view a ticket object")),
)
verbose_name = _("Ticket")
verbose_name_plural = _("Tickets")