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

Users without required permissions can see Remove submission for bulk operations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.7, 3.8
    • Fix Version/s: None
    • Component/s: Assignment
    • Testing Instructions:
      Hide

      Can't see option without capability

      1. Create a course with an assignment activity and file submission enabled.
      2. Enrol a student to the course and submit a file submission
      3. Enrol a teach to the course 
      4. Navigate to the grading screen e.g. mod/assign/view.php?id=xxxx&action=grading
      5. Make sure that you don't see Remove submission in the dropdown list for the bulk submissions operations. 

      Can see option with required capability

      1. Add mod/assign:editothersubmission to the teacher role.
      2. Create a course with an assignment activity and file submission enabled.
      3. Enrol a student to the course and submit a file submission
      4. Enrol a teach to the course 
      5. Navigate to the grading screen e.g. mod/assign/view.php?id=xxxx&action=grading
      6. Make sure that you see Remove submission in the dropdown list for the bulk submissions operations. 

       

       

      Show
      Can't see option without capability Create a course with an assignment activity and file submission enabled. Enrol a student to the course and submit a file submission Enrol a teach to the course  Navigate to the grading screen e.g. mod/assign/view.php?id=xxxx&action=grading Make sure that you don't see Remove submission in the dropdown list for the bulk submissions operations.  Can see option with required capability Add mod/assign:editothersubmission to the teacher role. Create a course with an assignment activity and file submission enabled. Enrol a student to the course and submit a file submission Enrol a teach to the course  Navigate to the grading screen e.g. mod/assign/view.php?id=xxxx&action=grading Make sure that you see Remove submission in the dropdown list for the bulk submissions operations.     
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-67206-master

      Description

      Currently users without mod/assign:editothersubmission see Remove submission option in the select for assignment bulk operations. They get permission error if they'd try to actually remove some assignments as they would need  at least  'mod/assign:editothersubmission'.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmitriim Dmitrii Metelkin
              Reporter:
              dmitriim Dmitrii Metelkin
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: