Skip to content

Commit b84b606

Browse files
fix: fixed tests
1 parent 4ee6535 commit b84b606

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cms/djangoapps/contentstore/views/course.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,9 @@ 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+
14251428
if 'text/html' in request.META.get('HTTP_ACCEPT', '') and request.method == 'GET':
14261429
grading_url = get_grading_url(course_key)
14271430
if grading_url:

0 commit comments

Comments
 (0)