]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11616, adding activity link back for hidden grade items
authortoyomoyo <toyomoyo>
Mon, 8 Oct 2007 02:34:04 +0000 (02:34 +0000)
committertoyomoyo <toyomoyo>
Mon, 8 Oct 2007 02:34:04 +0000 (02:34 +0000)
grade/report/lib.php

index eb478c88f37f9ab9edfb2e37fdf31a85d32d006d..ec13c0521b69e1b9ca588657caba5fac9243c5b0 100755 (executable)
@@ -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 '<a href="' . $url . '">' . $modulename . '</a>';
-            } else {
-                return $modulename;
-            }
+            return '<a href="' . $url . '">' . $modulename . '</a>';
         }
 
         return $modulename;