Skip to content

Commit

Permalink
feat: handle CourseAuthoringMFE activation setting
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-i-am committed Feb 22, 2024
1 parent cf6e266 commit 9116028
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cms/lib/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""
Helper methods for the CMS.
"""

from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers


def use_course_authoring_mfe(org) -> bool:
"""
Checks with the org if the tenant enables the
Course Authoring MFE.
Returns:
True if the MFE setting is activated, by default
the MFE is deactivated
"""
use_course_authoring_legacy = configuration_helpers.get_value_for_org(
org, "ENABLE_COURSE_AUTHORING_MFE", False
)

return bool(use_course_authoring_legacy)

0 comments on commit 9116028

Please sign in to comment.