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

Grades WS are not working for parent role

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.8.5, 3.9.2
    • Reports, Web Services

      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; }

            jleyva Juan Leyva
            jleyva Juan Leyva
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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