diff --git a/lms/envs/common.py b/lms/envs/common.py index b09af34b38..ba060f5ab1 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -103,8 +103,8 @@ MITX_FEATURES = { # with Shib. Feature was requested by Stanford's office of general counsel 'SHIB_DISABLE_TOS': False, - # Can be turned off if all courses are invite-only. Effects views and templates. - 'ENABLE_STUDENT_SELF_ENROLLMENT': True, + # Can be turned off if course lists need to be hidden. Effects views and templates. + 'COURSES_ARE_BROWSABLE': True, # Enables ability to restrict enrollment in specific courses by the user account login method 'RESTRICT_ENROLL_BY_REG_METHOD': False, diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 3e851ecbc6..bca2bf8c38 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -332,7 +332,7 @@ % else:
- % if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'): + % if settings.MITX_FEATURES.get('COURSES_ARE_BROWSABLE'):

${_("Looks like you haven't registered for any courses yet.")}

${_("Find courses now!")} diff --git a/lms/templates/index.html b/lms/templates/index.html index 0fecd24e84..83024e01aa 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -165,15 +165,17 @@
% endif -
- -
+ % if settings.MITX_FEATURES.get('COURSES_ARE_BROWSABLE'): +
+ +
+ % endif diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html index d44cd0e1b2..680838a719 100644 --- a/lms/templates/navigation.html +++ b/lms/templates/navigation.html @@ -57,7 +57,7 @@ site_status_msg = get_site_status_msg(course_id)