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

This commit is contained in:
ichuang
2013-02-08 09:00:56 -05:00
parent 7f70637331
commit 04cc257bdd

View File

@@ -280,6 +280,7 @@ def _get_module(user, request, descriptor, student_module_cache, course_id,
# Make an error module
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
if wrap_xmodule_display == True: