From 9c33c67d1da1ff9e4e6fcb411687017d2727368f Mon Sep 17 00:00:00 2001 From: Stefano Brentegani Date: Fri, 1 Aug 2014 09:28:04 +0200 Subject: [PATCH] ticket view redirect to management form should consider generic is_helpdesk_staff definition --- helpdesk/views/public.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/public.py b/helpdesk/views/public.py index e65f9f96..43bf72c4 100644 --- a/helpdesk/views/public.py +++ b/helpdesk/views/public.py @@ -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'