From 9830e1c3c1ddaec14961e8f8f74eb4d2604b1553 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Tue, 27 Jan 2009 10:19:06 +0000 Subject: [PATCH] Fixes issue #46 - could not reassign tickets. --- views/staff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/staff.py b/views/staff.py index 05dbb9bd..515a2e46 100644 --- a/views/staff.py +++ b/views/staff.py @@ -150,7 +150,7 @@ def update_ticket(request, ticket_id): f = FollowUp(ticket=ticket, date=datetime.now(), comment=comment) - if request.user.is_staff(): + if request.user.is_staff: f.user = request.user f.public = public @@ -296,7 +296,7 @@ def update_ticket(request, ticket_id): ticket.save() - if request.user.is_staff(): + if request.user.is_staff: return HttpResponseRedirect(ticket.get_absolute_url()) else: return HttpResponseRedirect(ticket.ticket_url)