Commit 04cc257b by ichuang

fix module staff accesss - by has_access, not by user.is_staff

parent 7f706373
...@@ -280,6 +280,7 @@ def _get_module(user, request, descriptor, student_module_cache, course_id, ...@@ -280,6 +280,7 @@ def _get_module(user, request, descriptor, student_module_cache, course_id,
# Make an error module # Make an error module
return err_descriptor.xmodule_constructor(system)(None, None) return err_descriptor.xmodule_constructor(system)(None, None)
system.set('user_is_staff', has_access(user, descriptor.location, 'staff', course_id))
_get_html = module.get_html _get_html = module.get_html
if wrap_xmodule_display == True: if wrap_xmodule_display == True:
......
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