-
Bug
-
Resolution: Fixed
-
Major
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-74253-master -
-
Moppies Kanban
Since MDL-73549 the My course page breaks when some course category is hidden.
Steps to reproduce:
- Create a new course category and click the eye to hide it.
- Log in as a normal user (user "t1" if you use MDK)
- Go to "My courses"
- Expected: my courses page is displayed
- What happens: an exception
The errors are due to the method get_nearest_editable_subcategory. In one of the lines it get a category using:
$subcategory = static::get($subcategoryid); |
The main problem with the get method is that by default it checks the user permission and raises an exception unless $alwaysreturnhidden param is true.
- is a regression caused by
-
MDL-73549 Users with course management or creation permission at category level should see 'Manage courses' or 'New course' on My courses page
- Closed