If a courses is non-enrolable (user can't self-enrol), I'd like to be able to hide that course from users unless they get enrolled some other way. This is similar to
MDL-23253 and might be able to use a similar solution.
Basically, We don't want users to start clicking on courses just to be greeted with "You can not enrol yourself in this course" because we will have a lot that will be manual/cohort enrollment only. The rest of our users don't need to see all of that.