-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.5, 3.11.6
-
MOODLE_311_STABLE
-
MOODLE_311_STABLE
-
-
2
Steps to reproduce:
- Create or select a test course, which is using Classic theme.
- Override the teacher role, so that it has 'moodle/site:viewreports', but not 'report/log:view'.
- Log in as that teacher, and go to that course.
- In the course settings block, click the word 'Reports'.
Actual result: 'Reports' is a link which takes you to .../report/view.php?courseid=123, and that then un-conditionally redirects you to /report/log/index.php?id=... which does require_capability('report/log:view', $context); so you get a fatal error.
report/view.php probably needs some slighly more clever redirect logic.
Noting that 4.0 most likely won't suffer from this bug because there's now a listing-style page for all course reports. I.e. there's no longer a report immediately loaded when clicking "Reports".
- has been marked as being related by
-
MDL-72094 Update the course reports page styling and functionality
- Closed