Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/lib.php
2  mod/assignment/lib.php
View
@@ -2125,7 +2125,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
}
- if (has_capability('moodle/course:viewrecent', get_context_instance(CONTEXT_COURSE, $course))) {
+ if (has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_COURSE, $course))) {
$grades = "(" . $activity->content->grade . " / " . $activity->content->maxgrade . ") ";
$assignment->id = $activity->instance;
Please sign in to comment.
Something went wrong with that request. Please try again.