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

Grades WS are not working for parent role

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.5, 3.9.2
    • Fix Version/s: None
    • Component/s: Reports, Web Services
    • Labels:

      Description

      In both:

      gradereport_user_get_grades_table

      and

      gradereport_overview_get_course_grades

      A capability check is missing:

      if (has_capability('moodle/grade:viewall', context_user::instance($userid)) and $course->showgrades)

      { // ok - can view grades of this user- parent most probably $access = true; }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: