Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7, 3.7.3, 3.8
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-65956-master-1 -
Description
Repro steps
- Login as an admin and verified that the "Teacher" role doe NOT have the capbility "Edit another student's submission" (mod/assign:editothersubmission).
- Login as a teacher.
- Create an assignment in your course.
- Login as a student and submit a paper to the assignment activity.
- Login as a teacher and view the submission table.
- Go the row of the student that submitted the paper.
- Go to the "Edit" column. # Click on the "Edit", and verify that you do NOT have the option "Remove submission" in the selected menu.
- Mark the relevant student row using the checkbox at its beginning.
- Click the "With Selected..." dropdown that is located under the submission table.
- From the dropdown, choose "Remove submission".
- Click on the "Go" button that is located on the side of the dropdown.
Expected Results
The submission should be removed, and if the user (teacher) doesn't have the required capability, a proper message should be displayed.
Actual Results
The submission is not removed, and instead the user is presented with a page that displays the text "error/nopermission" and link to the following page: https://docs.moodle.org/37/en/error/moodle/nopermission
which does not exist yet.
Problem
If the user does NOT have the mod/assign:editothersubmission capability, expectedly he's not presented with the "Remove submission" problem in the "Edit" menu, but unexpectedly he can still choose it from the "With Selected..." dropdown. It seems like a bug, but maybe I'm missing something.
Attachments
Issue Links
- duplicates
-
MDL-66256 Assignment: Teacher doesn't have permissions to remove a submission from a student
-
- Closed
-
- has been marked as being related by
-
MDL-68676 mod_assign: Remove assignment submission not working when group mode is separate groups
-
- Open
-
- is duplicated by
-
MDL-66974 Inconsistent capability checks when displaying assignment submissions table.
-
- Closed
-
-
MDL-67206 Users without required permissions can see Remove submission for bulk operations
-
- Closed
-
- Testing discovered
-
MDL-64919 Remove submission as admin not working
-
- Closed
-
-
MDL-67294 Choosing bulk removal of empty submissions causes an error
-
- Closed
-
- will help resolve
-
MDL-67446 Assignment remove submission is not changing submission status
-
- Closed
-