MDL-13050 merging from 1.9
This commit is contained in:
@@ -35,6 +35,12 @@ class quiz_default_report {
|
||||
$currenttab = 'reports';
|
||||
$mode = $reportmode;
|
||||
require($CFG->dirroot . '/mod/quiz/tabs.php');
|
||||
$course_context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
if (has_capability('gradereport/grader:view', $course_context) && has_capability('moodle/grade:viewall', $course_context)) {
|
||||
echo '<a class="allcoursegrades" href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">'
|
||||
. get_string('seeallcoursegrades', 'grades') . '</a>';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user