Skip to content

Commit a4d684b

Browse files
fix: fixed grading handler
1 parent 214d24a commit a4d684b

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

cms/djangoapps/contentstore/views/course.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,16 +1422,8 @@ def grading_handler(request, course_key_string, grader_index=None):
14221422
if not has_studio_read_access(request.user, course_key):
14231423
raise PermissionDenied()
14241424

1425-
# Load the course block for use in rendering or context helpers.
1426-
course_block = get_course_and_check_access(course_key, request.user)
1427-
14281425
if 'text/html' in request.META.get('HTTP_ACCEPT', '') and request.method == 'GET':
1429-
grading_url = get_grading_url(course_key)
1430-
if grading_url:
1431-
return redirect(grading_url)
1432-
# Fall back to legacy Studio page when MFE grading URL is not configured.
1433-
settings_context = get_course_settings(request, course_key, course_block)
1434-
return render_to_response('settings.html', settings_context)
1426+
return redirect(get_grading_url(course_key))
14351427
elif 'application/json' in request.META.get('HTTP_ACCEPT', ''):
14361428
if request.method == 'GET':
14371429
if grader_index is None:

0 commit comments

Comments
 (0)