followup_edit should be allowed for staff members only.

This commit is contained in:
Andreas Kotowicz 2012-01-12 20:24:07 +01:00
parent 4bf79ccf46
commit 932c2016f6

View File

@ -182,6 +182,7 @@ def followup_edit(request, ticket_id, followup_id):
# delete old followup # delete old followup
followup.delete() followup.delete()
return HttpResponseRedirect(reverse('helpdesk_view', args=[ticket.id])) return HttpResponseRedirect(reverse('helpdesk_view', args=[ticket.id]))
followup_edit = staff_member_required(followup_edit)
def followup_delete(request, ticket_id, followup_id): def followup_delete(request, ticket_id, followup_id):