[open-ils-commits] r110 - servres/trunk/conifer/syrup
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jan 11 21:21:03 EST 2009
Author: gfawcett
Date: 2009-01-11 21:21:02 -0500 (Sun, 11 Jan 2009)
New Revision: 110
Modified:
servres/trunk/conifer/syrup/views.py
Log:
bugfix in item_add handler
Modified: servres/trunk/conifer/syrup/views.py
===================================================================
--- servres/trunk/conifer/syrup/views.py 2009-01-11 23:44:34 UTC (rev 109)
+++ servres/trunk/conifer/syrup/views.py 2009-01-12 02:21:02 UTC (rev 110)
@@ -167,7 +167,7 @@
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')
More information about the open-ils-commits
mailing list