-
Bug
-
Resolution: Fixed
-
Major
-
1.8
-
None
-
MOODLE_18_STABLE
-
MOODLE_18_STABLE, MOODLE_19_STABLE
Users assigned to a role at category-level don't view the courses of the subcategory in "My Courses" block, user profile, etc.
For instance:
- a category "Cat1" has two subcategories "Cat11" and "Cat12"
- the category "Cat1" has one course "CourseA"
- the subcategory "Cat11" has one course "CourseB"
- the user is assigned as a student to the category "Cat1"
-> he can access as a student to the course "CourseA"
-> he can access as a student to the course "CourseB"
-> BUT he doesn't view the course "CourseB" in his "My courses" blocks
The responsible function is the datalib function get_my_courses() which doesn't select suchlike courses.
But it is not easy to correct... (