From 54796e5c4b642356cf8a4cbf730f4c5fd3ea4c26 Mon Sep 17 00:00:00 2001 From: Tom Weber Date: Thu, 12 Nov 2020 07:59:23 -0700 Subject: [PATCH] Allow users to edit tickets if HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE enabled --- helpdesk/user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpdesk/user.py b/helpdesk/user.py index 03958e41..a7f7a6ca 100644 --- a/helpdesk/user.py +++ b/helpdesk/user.py @@ -54,7 +54,8 @@ class HelpdeskUser: return Ticket.objects.filter(queue__in=self.get_queues()) def has_full_access(self): - return self.user.is_superuser or self.user.is_staff + return self.user.is_superuser or self.user.is_staff \ + or helpdesk_settings.HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE def can_access_queue(self, queue): """Check if a certain user can access a certain queue.