Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-12889 - uncommitting previous change - since grade:viewall is new…

… to 1.9 (my bad)
  • Loading branch information...
commit 00a2ce3bf9dedb1cb86877126ff0bf16b1351462 1 parent a789bed
arborrow authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/lib.php
View
2  mod/assignment/lib.php
@@ -2125,7 +2125,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
}
- if (has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_COURSE, $course))) {
+ if (has_capability('moodle/course:viewrecent', 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.