I don't think there is. We had to write our own course list block that made the same sort of accomodation.
Courses were listed if the student was enrolled on the course, but was greyed out / disabled / got a message if they try to access the course if it was still set to "hidden"/closed to students.
There's an interesting 3 state issue here...
Courses were listed if the student was enrolled on the course, but was greyed out / disabled / got a message if they try to access the course if it was still set to "hidden"/closed to students.
There's an interesting 3 state issue here...