From: gfawcett Date: Mon, 12 Jan 2009 02:21:02 +0000 (+0000) Subject: bugfix in item_add handler X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f05ab808604eb48640756b63f7c7c1856904adbb;p=syrup%2Fmasslnc.git bugfix in item_add handler git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@110 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/syrup/views.py b/conifer/syrup/views.py index 49a45fd..5c4d253 100644 --- a/conifer/syrup/views.py +++ b/conifer/syrup/views.py @@ -167,7 +167,7 @@ def item_add(request, course_id, item_id): assert parent_item.item_type == 'HEADING', 'Can only add items to headings!' course = parent_item.course - if not course.can_edit(user): + if not course.can_edit(request.user): return HttpResponseForbidden('not an editor') # fixme, prettier msg? item_type = request.GET.get('item_type')