-
Bug
-
Resolution: Fixed
-
Major
-
3.4, 3.4 regressions
-
MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-60806-master -
Environment:
- Moodle 3.4 (2017111300.00)
- Ubuntu 16 LTS
- PHP 7.0 (PHP-FPM via proxy_fcgi)
- Apache2
Steps to replicate:
Install Moodle 3.4 (2017111300.00) (no additional themes or plugins of any kind, configuration all default except site name), then:
- Create category "Special Category" as top-level category
- Set "Special Category" as hidden
- Create course in "Special Category"
- Set course start and end dates so the course is current (start date in past, end date in future)
- Create user "Student User"
- Enrol Student User in the course just created
- As the site admin user add the Calendar block to the course just created
- As the Student User login. You should see the course in your current courses in the Dashboard and it should be visible in the drawer menu
- Attempt to view the course as the Student User
Result: You get the "Unknown category" error.
Expected: You can view the course as the student user.
Additional Notes:
If you skip step #7 (adding calendar block to the course), then the student is able to view the course without error.
In Moodle 3.3.1 (2017051501.00) this error does not occur.
I'm aware of MDL-47231 which was ruled as "not a bug" but this case is not the same.
If you enrol another user as a teacher in the same course, you get the same unknown category error.
Even after setting moodle/category:viewhiddencategories to Allow for the Teacher role, the teacher continues to get the same error.