Hi everyone,
I’m working with Tutor v19 and trying to hide all courses from the homepage of the frontend-app-learner (MFE). I want to prevent anonymous users from seeing any courses before logging in.
What I did so far:
- In
config.yml
, I set the following:
COURSE_ABOUT_VISIBILITY_PERMISSION: none
COURSE_CATALOG_VISIBILITY: none
COURSE_CATALOG_VISIBILITY_PERMISSION: none
ENABLE_HTTPS: false
- I also created a custom plugin like this:
from tutor import hooks
hooks.Filters.ENV_PATCHES.add_items([
(
"lms-env",
"""
COURSE_CATALOG_VISIBILITY_PERMISSION: "enrollment"
COURSE_ABOUT_VISIBILITY_PERMISSION: "enrollment"
"""
)
])
- I rebuilt the environment and restarted all services using:
tutor config save
tutor images build openedx
tutor local stop
tutor local start -d
The issue:
Despite these changes, the homepage still displays all courses, even to users who are not logged in (as shown in the screenshot).
What I’m looking for:
I would like to completely hide courses on the homepage (Course Discovery page) unless the user is enrolled or authenticated. Ideally, the course cards should not be visible to anonymous users.
Any suggestions or working examples would be greatly appreciated.
Thanks in advance!