Commit c5dbf069 by ichuang

quickedit hook for dogfood - skip is_staff check for dogfood

parent 8bc33a37
...@@ -314,7 +314,9 @@ def quickedit(request, id=None, qetemplate='quickedit.html',coursename=None): ...@@ -314,7 +314,9 @@ def quickedit(request, id=None, qetemplate='quickedit.html',coursename=None):
print "In deployed use, this will only edit on one server" print "In deployed use, this will only edit on one server"
print "We need a setting to disable for production where there is" print "We need a setting to disable for production where there is"
print "a load balanacer" print "a load balanacer"
if not request.user.is_staff: if not request.user.is_staff:
if not ('dogfood_id' in request.session and request.session['dogfood_id']==id):
return redirect('/') return redirect('/')
# get coursename if stored # get coursename if stored
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment