Skip to content

Commit

Permalink
MDL-78871 gradereport_grader: capability check getting report users.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden authored and HuongNV13 committed Aug 10, 2023
1 parent 769e915 commit ff75f4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grade/report/grader/classes/external/get_users_in_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public static function execute(int $courseid): array {
$context = context_course::instance($courseid);
self::validate_context($context);

require_capability('gradereport/grader:view', $context);

// Return tracking object.
$gpr = new \grade_plugin_return(
[
Expand Down

0 comments on commit ff75f4c

Please sign in to comment.