mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
ticket view redirect to management form should consider generic is_helpdesk_staff definition
This commit is contained in:
parent
8be4480a3f
commit
9c33c67d1d
@ -90,7 +90,7 @@ def view_ticket(request):
|
||||
|
||||
if ticket:
|
||||
|
||||
if request.user.is_staff:
|
||||
if is_helpdesk_staff(request.user):
|
||||
redirect_url = reverse('helpdesk_view', args=[ticket_id])
|
||||
if request.GET.has_key('close'):
|
||||
redirect_url += '?close'
|
||||
|
Loading…
Reference in New Issue
Block a user