Commit 8a174777 by ichuang

redirect to course_about page if hit internal course page unregistered for

parent b1ddff83
......@@ -168,7 +168,7 @@ def index(request, course_id, chapter=None, section=None,
registered = registered_for_course(course, request.user)
if not registered:
log.debug('User %s tried to view course %s but is not enrolled' % (request.user,course.location.url()))
return redirect('/')
return redirect(reverse('about_course', args=[course.id]))
try:
context = {
......
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