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

Non editing teacher gets "sorry, but you need to be part of a group" in Participation Report

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.6.6, 3.7.2, 3.8
    • Fix Version/s: None
    • Component/s: Reports
    • Labels:

      Description

      To reproduce.

      • Create a new, empty course with default settings (leave group mode off)
      • Enrol a user as a non-editing teacher. Make sure they don't have other/higher assignments
      • Log in as that user
      • Run the Participation report

      It doesn't work. Above message is generated. 

      Analysis...

      There are really two problems...

      1. The report tries to generate a group select menu regardless of the group status of the course
      2. The API function - groups_allgroups_course_menu - relies on the capability moodle/site:accessallgroups to return a functionless 'All participants' string when there are no groups. The non-editing teacher role doesn not have this capability and the function returns an empty string. This, in turn, causes the error message. 

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            howardsmiller Howard Miller
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            5 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 - 15 minutes
                15m