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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.6.6, 3.7.2, 3.8
    • Reports

      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. 

            Unassigned Unassigned
            howardsmiller Howard Miller
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.