From: toyomoyo Date: Mon, 8 Oct 2007 02:34:04 +0000 (+0000) Subject: MDL-11616, adding activity link back for hidden grade items X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1b39b03a84fe6eda67457fcc1b9875060821bdd5;p=moodle.git MDL-11616, adding activity link back for hidden grade items --- diff --git a/grade/report/lib.php b/grade/report/lib.php index eb478c88f3..ec13c0521b 100755 --- a/grade/report/lib.php +++ b/grade/report/lib.php @@ -339,12 +339,7 @@ class grade_report { $url .= "?id=$coursemodule->id"; - // MDL-11274, Hide grades in the grader report if the current grader doesn't have 'moodle/grade:viewhidden' - if (has_capability('moodle/grade:viewhidden', get_context_instance(CONTEXT_COURSE, $coursemodule->course))) { - return '' . $modulename . ''; - } else { - return $modulename; - } + return '' . $modulename . ''; } return $modulename;