-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.2, 2.2
-
None
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
When a user has the capability "moodle/notes:view" but not "moodle/site:accessallgroups", he cannot navigate to the notes page using the navigation outline.
Steps to reproduce:
- Enable notes on your Moodle site.
- Change capability setting "moodle/site:accessallgroups" to "not set" for role "Nonediting teacher".
- Create a course.
- Create a group in the course (make sure that the groupid does not happen to be the same number as the courseid).
- Enrol a nonediting teacher into the course and group.
- Log in as the nonediting teacher.
- In the navigation outline, navigate to the course entry, then "Participants", then "Notes".
- Clicking on "Notes" will result in an error message: "Can not find data record in database table course."
Background: The notes system does not support filtering by group. However, the outline tries to pass a group filter, generating a link to .../notes/index.php?filtertype=course&filterselect=<id> where <id> is the group id. This invalid parameter leads to the error message.
- will help resolve
-
MDL-28068 Review the notes links within the navigation
-
- Closed
-