Commit 977eb653 by ichuang

allow staff to toggle masquerade on info pages (otherwise can get

blocked from courseware pages, if course hasn't started yet)
parent f1a899ac
......@@ -449,9 +449,10 @@ def course_info(request, course_id):
"""
course = get_course_with_access(request.user, course_id, 'load')
staff_access = has_access(request.user, course, 'staff')
masq = setup_masquerade(request, staff_access) # allow staff to toggle masquerade on info page
return render_to_response('courseware/info.html', {'request': request, 'course_id': course_id, 'cache': None,
'course': course, 'staff_access': staff_access})
'course': course, 'staff_access': staff_access, 'masquerade': masq})
@ensure_csrf_cookie
......
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