-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.3.7
-
MOODLE_33_STABLE
There is an issue when a user has the capability moodle/course:update, and hence can view/edit the completions settings for a course, but does not have the capability moodle/category:viewhiddencategories.
The list of courses generated for the 'criteria_course' field (course prerequisites) may not have all category info prepended to each course correctly and PHP notices may be raised.
In this case the course list isn't restricted in the same way as the category list is (rightly so, i believe) and it looks like there possibly needs to be a way to force the make_categories_list() function to ignore the moodle/category:viewhiddencategories check (but it's a little more complex than just that due to the caching).
An example would be a user who is an 'editingteacher'.
Discovered in 3.3.7 and looks to be an issue right through to master.
I'm happy to pick this up myself and propose a potential solution for review.
- duplicates
-
MDL-10965 Add new capability to view the list of non-hidden courses
-
- Closed
-