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 cfe0874655666d2fc3fb35607c3a73091f226c71 1 parent 75ed3a0
arborrow authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/lib.php
View
2  mod/assignment/lib.php
@@ -2177,7 +2177,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.