Skip to content

Commit 2ad82d5

Browse files
committed
refactor: migrate ALLOW_COURSE_RERUNS off FEATURES-as-dict
1 parent 7536571 commit 2ad82d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cms/djangoapps/contentstore/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ def get_library_context(request, request_is_json=False):
15891589
'course_creator_status': _get_course_creator_status(request.user),
15901590
'allow_unicode_course_id': settings.ALLOW_UNICODE_COURSE_ID,
15911591
'archived_courses': True,
1592-
'allow_course_reruns': settings.FEATURES.get('ALLOW_COURSE_RERUNS', True),
1592+
'allow_course_reruns': settings.ALLOW_COURSE_RERUNS,
15931593
'rerun_creator_status': GlobalStaff().has_user(request.user),
15941594
'split_studio_home': split_library_view_on_dashboard(),
15951595
'active_tab': 'libraries',
@@ -1719,7 +1719,7 @@ def get_home_context(request, no_course=False):
17191719
'course_creator_status': _get_course_creator_status(user),
17201720
'rerun_creator_status': GlobalStaff().has_user(user),
17211721
'allow_unicode_course_id': settings.ALLOW_UNICODE_COURSE_ID,
1722-
'allow_course_reruns': settings.FEATURES.get('ALLOW_COURSE_RERUNS', True),
1722+
'allow_course_reruns': settings.ALLOW_COURSE_RERUNS,
17231723
'active_tab': 'courses',
17241724
'allowed_organizations': get_allowed_organizations(user),
17251725
'allowed_organizations_for_libraries': get_allowed_organizations_for_libraries(user),

0 commit comments

Comments
 (0)