Merge pull request #1626 from MITx/fix/cale/module-render-500-fix
Fix https://edx.lighthouseapp.com/projects/101932-lms/tickets/237-Produc...
This commit is contained in:
@@ -500,7 +500,7 @@ def modx_dispatch(request, dispatch, location, course_id):
|
||||
if instance is None:
|
||||
# Either permissions just changed, or someone is trying to be clever
|
||||
# and load something they shouldn't have access to.
|
||||
log.debug("No module {0} for user {1}--access denied?".format(location, user))
|
||||
log.debug("No module {0} for user {1}--access denied?".format(location, request.user))
|
||||
raise Http404
|
||||
|
||||
instance_module = get_instance_module(course_id, request.user, instance, student_module_cache)
|
||||
|
||||
Reference in New Issue
Block a user