Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-12889 - bad capability check [thanks Tim!] in assignment recent a…

…ctivity report

merged from MOODLE_19_STABLE
  • Loading branch information...
commit a789bed6ef66db4b8ddf6a9a0bc8fb33ec36f827 1 parent 897e6a3
arborrow authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/assignment/lib.php
2  mod/assignment/lib.php
@@ -2125,7 +2125,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
2125 2125
2126 2126 }
2127 2127
2128   - if (has_capability('moodle/course:viewrecent', get_context_instance(CONTEXT_COURSE, $course))) {
  2128 + if (has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_COURSE, $course))) {
2129 2129 $grades = "(" . $activity->content->grade . " / " . $activity->content->maxgrade . ") ";
2130 2130
2131 2131 $assignment->id = $activity->instance;

0 comments on commit a789bed

Please sign in to comment.
Something went wrong with that request. Please try again.