-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.0.7, 3.2.2
-
MOODLE_30_STABLE, MOODLE_32_STABLE
-
MDL-58815_quiz_grade_permissions
-
When removing permission mod/quiz:viewreports attached files in essay questions are no longer downloadable, rendering the message Sorry, the requested file could not be found.
Steps to reproduce
Prerequisites:
- Course A
- Users enrolled in this course: Student S, Teacher T and Non-editing teacher N
Steps:
- Login as admin
- Remove the capability mod/quiz:viewreports from the role Non-editing teacher (on standard Moodle instances: admin/roles/define.php?action=view&roleid=4)
- Logout
- Login as Teacher T and go to Course A
- Turn editing on
- Add a new quiz instance:
- Title: "Test attachments"
- Edit quiz
- Add a new essay question
- Question name: Essay with attachments
- Question text: Add an attachment.
- Response format: No online text
- Allow attachments: 1
- Allow attachments: 1
- Logout
- Login as Student S
- Go to Course A
- Make the quiz, add example_attachment.pdf and finish attempt
- Submit all and finish
- Logout
- Login as Non-editing teacher N
- Go to Course A
- Open the quiz "Test attachments"
- Go to manual grading page
- Click on "grade"
- Click on the attached file "example_attachment.pdf
- See the error: "Sorry, the requested file could not be found"
Optional:
Countercheck with Teacher T and see that he is able to download the attachment.
- has been marked as being related by
-
MDL-58814 Anonymous quiz not anonymous
- Closed