ned-code / moodle-block_mentor

7 stars 13 forks source link

Course filtering not working #53

Closed mkpelletier closed 6 years ago

mkpelletier commented 6 years ago

Version: 3.3.0 (2017072502) Moodle version: 3.3.3+ (Build: 20171228)

The course filter (other settings > course categories included [block_fn_mentor | coursecategories]) does not appear to function properly. When selecting anything other than "all categories", mentor users are not able to see mentee enrolments. Instead, the report says "This student is not enrolled in any courses".

The problem only appears to manifest on some students, though not all. Without the category limitation, all students display fine.

mkpelletier commented 6 years ago

I think I cracked it. The problem relates to categories that are hidden. In order for mentors to see past courses (which we usually hide to keep one of our custom menus clear of inactive courses), the following permissions must be set on the mentor-system role:

moodle/category:viewhiddencategories [allow]