diff --git a/cms/djangoapps/contentstore/tests/test_course_settings.py b/cms/djangoapps/contentstore/tests/test_course_settings.py index 7ef262559b..99740573cc 100644 --- a/cms/djangoapps/contentstore/tests/test_course_settings.py +++ b/cms/djangoapps/contentstore/tests/test_course_settings.py @@ -285,6 +285,7 @@ class CourseDetailsViewTest(CourseTestCase, MilestonesTestCaseMixin): with mock.patch.dict('django.conf.settings.FEATURES', { 'ENABLE_PUBLISHER': True, + 'ENABLE_MKTG_SITE': True, 'ENTRANCE_EXAMS': False, 'ENABLE_PREREQUISITE_COURSES': False }): diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index 16513ed128..21924ccc8c 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -1051,6 +1051,11 @@ def settings_handler(request, course_key_string): 'ENABLE_PUBLISHER', settings.FEATURES.get('ENABLE_PUBLISHER', False) ) + marketing_enabled = configuration_helpers.get_value_for_org( + course_module.location.org, + 'ENABLE_MKTG_SITE', + settings.FEATURES.get('ENABLE_MKTG_SITE', False) + ) enable_extended_course_details = configuration_helpers.get_value_for_org( course_module.location.org, 'ENABLE_EXTENDED_COURSE_DETAILS', @@ -1080,6 +1085,7 @@ def settings_handler(request, course_key_string): 'video_thumbnail_image_url': course_image_url(course_module, 'video_thumbnail_image'), 'details_url': reverse_course_url('settings_handler', course_key), 'about_page_editable': about_page_editable, + 'marketing_enabled': marketing_enabled, 'short_description_editable': short_description_editable, 'sidebar_html_enabled': sidebar_html_enabled, 'upload_asset_url': upload_asset_url, diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 5490afe738..a4657c2666 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -85,7 +85,7 @@ CMS.URL.UPLOAD_ASSET = '${upload_asset_url | n, js_escaped_string}' - % if about_page_editable: + % if not marketing_enabled: