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

Filtering in grader fails if user does not have moodle/user:editownprofile capability

    XMLWordPrintable

Details

    • MOODLE_38_STABLE, MOODLE_39_STABLE

    Description

      When a teacher is grading an assignment, there is an option in the top right to filter by “Submitted”, “Not submitted”, “Requires Grading” etc. Selecting one of these filter options triggers an ajax request to set the "assign_filter" preference before actually retrieving the filtered student submissions. If the ‘moodle/user:editownprofile’ capability is not set or not allowed for teachers, this results in a “nopermission” error. Since the filtering of student submissions depends on the user preference value being set, the filtering fails and instead it returns all (unfiltered) student submissions. The editownprofile capability should not prevent a teacher from being able to filter while grading.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mvangelovski Michael
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            4 Vote for this issue
            Watchers:
            6 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 - 45 minutes
                45m