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

On courses with separated groups, gradereport_user_get_grade_items throws 'notingroup' when accessing one's grade items

XMLWordPrintable

    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-65381-403
    • MDL-65381-master
    • Hide
      1. As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features
      2. Create a Token in the mobile app service for any user on the site (not an admin account)
        • Click on Site administration ► Server ► Web services ► Manage token
      3. Create a course using Separate groups (but doe not create any group within the course, just enable the course setting forcing separate groups) with at least one activity in it (a quiz or assignment)
      4. Enrol as student the user from step 2
      5. Open the console and execute this new curl request, replacing WS_TOKEN with the token you just created and the SITE_URL with yours.

        curl ‘SITE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'courseid=COURSEID&userid=USERID&wsfunction=gradereport_user_get_grade_items&wstoken=WS_TOKEN' | python -m "json.tool"

      1. Confirm that:
        • You don't receive any error/exception as response of the curl request.
      Show
      As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features Create a Token in the mobile app service for any user on the site (not an admin account) Click on Site administration ► Server ► Web services ► Manage token Create a course using Separate groups (but doe not create any group within the course, just enable the course setting forcing separate groups) with at least one activity in it (a quiz or assignment) Enrol as student the user from step 2 Open the console and execute this new curl request, replacing WS_TOKEN with the token you just created and the SITE_URL with yours. curl ‘SITE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'courseid=COURSEID&userid=USERID&wsfunction=gradereport_user_get_grade_items&wstoken=WS_TOKEN' | python -m "json.tool" Confirm that: You don't receive any error/exception as response of the curl request.

      On courses configured with separate groups, with noone in groups, the webservice call 'gradereport_user_get_grade_items' throws 'notingroup' when accessing one's own grades.

            jleyva Juan Leyva
            odyx Didier Raboud
            Rodrigo Mady Rodrigo Mady
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 25 minutes
                4h 25m

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