add permissions in ticket models

This commit is contained in:
j3d1 2024-01-07 22:29:37 +01:00
parent 2e29b8b046
commit 54e5ba6e8e

View file

@ -55,6 +55,12 @@ def create_issue_thread(sender, instance, created, **kwargs):
if created: if created:
StateChange.objects.create(issue_thread=instance, state='pending_new') StateChange.objects.create(issue_thread=instance, state='pending_new')
class Meta:
permissions = [
('send_mail', 'Can send mail'),
('add_issuethread_manual', 'Can add issue thread manually'),
]
class Comment(models.Model): class Comment(models.Model):
id = models.AutoField(primary_key=True) id = models.AutoField(primary_key=True)