Skip to content

Commit c338f09

Browse files
authored
feat: Add Waffle flag for AuthZ for Course Authoring (openedx#37985)
1 parent fd15557 commit c338f09

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

openedx/core/toggles.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
for them. Generally speaking, they should be added to the most appropriate app or repo.
44
"""
55
from edx_toggles.toggles import SettingToggle
6+
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag
7+
68

79
# .. toggle_name: ENTRANCE_EXAMS
810
# .. toggle_implementation: SettingToggle
@@ -15,3 +17,14 @@
1517
ENTRANCE_EXAMS = SettingToggle(
1618
"ENTRANCE_EXAMS", default=False, module_name=__name__
1719
)
20+
21+
# .. toggle_name: authz.enable_course_authoring
22+
# .. toggle_implementation: CourseWaffleFlag
23+
# .. toggle_default: False
24+
# .. toggle_description: This toggle will enable the new openedx-authz authorization engine for course authoring.
25+
# .. toggle_warning: Enabling this toggle will trigger a data migration to move role assignations between the legacy and the openedx-authz system.
26+
# .. toggle_use_cases: temporary
27+
# .. toggle_creation_date: 2026-02-05
28+
# .. toggle_target_removal_date: 2027-06-09
29+
# .. toggle_tickets: https://github.com/openedx/openedx-platform/issues/37927
30+
AUTHZ_COURSE_AUTHORING_FLAG = CourseWaffleFlag('authz.enable_course_authoring', __name__)

0 commit comments

Comments
 (0)