Describe the bug
When a staff member does not have the moodle/site:accessallgroups capability, this report still shows all students in the assignment even if the member is not in the student's group.
To Reproduce
Steps to reproduce the behavior:
Create course with a staff role without moodle/site:accessallgroups access
Add some students and separate them into two groups and add to a grouping
Add the staff member to one of the groups
Create an assignment in separate groups mode using the created grouping
Define a rubric and assign to the assignment
Grade all students from both groups
login as the staff member and open the Rubric Breakdown report
Expected behavior
Only the students in the group visible to the staff member should show but instead all groups are shown.
Describe the bug When a staff member does not have the moodle/site:accessallgroups capability, this report still shows all students in the assignment even if the member is not in the student's group.
To Reproduce Steps to reproduce the behavior:
Expected behavior Only the students in the group visible to the staff member should show but instead all groups are shown.