-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle CourseAuthoringMFE activation setting
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |