Allow for site override of EDITABLE_SHORT_DESCRIPTION setting

This commit is contained in:
Douglas Hall
2016-08-29 13:50:28 -04:00
parent 5d43966937
commit 98ec118915

View File

@@ -990,7 +990,11 @@ def settings_handler(request, course_key_string):
about_page_editable = not marketing_site_enabled
enrollment_end_editable = GlobalStaff().has_user(request.user) or not marketing_site_enabled
short_description_editable = settings.FEATURES.get('EDITABLE_SHORT_DESCRIPTION', True)
short_description_editable = configuration_helpers.get_value_for_org(
course_module.location.org,
'EDITABLE_SHORT_DESCRIPTION',
settings.FEATURES.get('EDITABLE_SHORT_DESCRIPTION', True)
)
self_paced_enabled = SelfPacedConfiguration.current().enabled
settings_context = {