Add check for Special Exams toggle

This commit is contained in:
mohtamba
2021-08-11 16:15:08 -04:00
parent 05482aedeb
commit e39d82ab24

View File

@@ -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: