mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 10:21:05 +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