Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-65956

A teacher trying to remove a submission without having the relevant capability encounters an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Repro steps

      1. Login as an admin and verified that the "Teacher" role doe NOT have the capbility "Edit another student's submission" (mod/assign:editothersubmission).
      2. Login as a teacher.
      3. Create an assignment in your course.
      4. Login as a student and submit a paper to the assignment activity.
      5. Login as a teacher and view the submission table.
      6. Go the row of the student that submitted the paper.
      7. Go to the "Edit" column. # Click on the "Edit", and verify that you do NOT have the option "Remove submission" in the selected menu.
      8. Mark the relevant student row using the checkbox at its beginning.
      9. Click the "With Selected..." dropdown that is located under the submission table.
      10. From the dropdown, choose "Remove submission".
      11. 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

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m