Fixes TNL-7613 and TNL-7614 (#236)

The course blocks API accepts a value of ‘special_exam_info’ in its requested_fields parameter.  This value is necessary to include special exam sequences for non-staff users.  Special exams include timed, proctored, and practice proctored exams.
This commit is contained in:
David Joy
2020-10-06 17:17:29 -04:00
committed by GitHub
parent 36f8dd81cd
commit 4f396737e4

View File

@@ -91,7 +91,7 @@ export async function getCourseBlocks(courseId) {
url.searchParams.append('course_id', courseId);
url.searchParams.append('username', username);
url.searchParams.append('depth', 3);
url.searchParams.append('requested_fields', 'children,show_gated_sections,graded');
url.searchParams.append('requested_fields', 'children,show_gated_sections,graded,special_exam_info');
const { data } = await getAuthenticatedHttpClient().get(url.href, {});
return normalizeBlocks(courseId, data.blocks);