Hi every one,
Currently, the only way to prevent enrolled students access in a course is to hide it. This is not always desirable. Students or learners might think they are not enrolled or the course doesn't exist. Sometimes a teacher wants only to prevent students access while letting them know that the course does exist but the access is prevented. There are a lot of use cases for which a teacher would prefer to prevent students access than hiding the course. e.g. To make some update or to prevent access temporary. Un fortunately, there is nothing which could help to solve this issue.
When Moodle is in a maintenance mode, users can reach the website but they cannot access it. They get a message that Moodle is in maintenance. It would be better to have the same kind of functionality at the course level.
To solve this issue, we suggest to add a third value for the visibility parameter at the course settings page:
- Not available
With the third value ('not available'), the course is shown but students cannot access it. Enrolled student can see it on their dashboard. The course is returned in search result but when a student try to access, they get a message that the course is not available.
We developed this feature and the issue is being tracked on https://tracker.moodle.org/browse/MDL-64754. It would be helpful to have community feedback on the feature and, if you want to to see it on moodle, to vote for it.
Thanks a lot.