Expose proctoring waffle to edx-proctoring templates (#25704)

* pass proctoring waffle flag on render
This commit is contained in:
Zachary Hancock
2020-12-07 16:30:26 -05:00
committed by GitHub
parent db9bd85308
commit e2d9c34d5c

View File

@@ -24,6 +24,8 @@ from xblock.exceptions import NoSuchServiceError
from xblock.fields import Boolean, Integer, List, Scope, String
from edx_toggles.toggles import LegacyWaffleFlag
from edx_toggles.toggles import WaffleFlag
from lms.djangoapps.courseware.toggles import COURSEWARE_PROCTORING_IMPROVEMENTS
from openedx.core.lib.graph_traversals import traverse_pre_order
from .exceptions import NotFoundError
@@ -767,6 +769,7 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
'allow_proctoring_opt_out': self.allow_proctoring_opt_out,
'due_date': self.due,
'grace_period': self.graceperiod,
'experimental_proctoring_features': COURSEWARE_PROCTORING_IMPROVEMENTS.is_enabled(course_id),
}
# inject the user's credit requirements and fulfillments