Skip to content

[BB-2696] Allow configuring course visibility from Studio

Created by: lgp171188

This PR adds the ansible variables that allow configuring the course visibility from Studio. See here for the defaults and see the assignment to the corresponding environment variables here.

Testing instructions:

  • Add the following to lms.env.json
    {
      ...
      "COURSE_CATALOG_VISIBILITY_PERMISSION": "see_in_catalog",
      "COURSE_ABOUT_VISIBILITY_PERMISSION": "see_about_page"
      ...
    }
    or lms.yml
    COURSE_CATALOG_VISIBILITY_PERMISSION: see_in_catalog
    COURSE_ABOUT_VISIBILITY_PERMISSION: see_about_page
  • Restart LMS and Studio.
  • Configure the course visibility settings in the Advanced Settings page of the course in Studio and for example, hide the course from the catalog and the about page.
  • Verify that the course is hidden from the catalog and the about page is hidden as well. Since the home page is cached for anonymous users, this might take a few minutes to get applied on the home page.

Merge request reports