Hi, as far as I understand it the course list in My Moodle shows all the courses a user able to 'view'. So when the students go to My Moodle they see a list of all the courses they have ever visited, as well as any they are actually enrolled on. I would like to narrow this down so that just courses they are enrolled in are displayed in the list.
Looking at the code my moodle /index.php uses "get_my_courses" which in turn mainly uses "get_user_courses_bycap" which goes by moodle/course:view .
Is there a capability that will narrow down the results to just enrolled courses???
have seen moodle/course:participate but that looks like just for M2.0
or is there any other function that will pull out courses that a user ID has a particular role in??