ticket view redirect to management form should consider generic is_helpdesk_staff definition

This commit is contained in:
Stefano Brentegani 2014-08-01 09:28:04 +02:00
parent 8be4480a3f
commit 9c33c67d1d

View File

@ -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'