From e39d82ab249dfa34ca7de29f80fd49d9704029f3 Mon Sep 17 00:00:00 2001 From: mohtamba Date: Wed, 11 Aug 2021 16:15:08 -0400 Subject: [PATCH] Add check for Special Exams toggle --- lms/djangoapps/courseware/plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/plugins.py b/lms/djangoapps/courseware/plugins.py index e9cb2db722..ce53647d98 100644 --- a/lms/djangoapps/courseware/plugins.py +++ b/lms/djangoapps/courseware/plugins.py @@ -163,6 +163,7 @@ class CalculatorCourseApp(CourseApp): "configure": False, } + class ProctoringCourseApp(CourseApp): """ Course App config for proctoring app. @@ -177,7 +178,7 @@ class ProctoringCourseApp(CourseApp): """ Proctoring is available for all courses. """ - return True + return settings.FEATURES.get("ENABLE_SPECIAL_EXAMS", False) @classmethod def is_enabled(cls, course_key: CourseKey) -> bool: