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:
David Ormsbee
2013-03-08 07:09:48 -08:00

View File

@@ -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)