Skip to content

Commit

Permalink
MDL-21665 Minor fix to breadcrumb trail in completion progress report
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Feb 19, 2010
1 parent 19f3bbb commit a7382d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion course/report/progress/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ function csv_quote($value) {

$PAGE->set_title($strcompletion);
$PAGE->set_heading($course->fullname);
$PAGE->navbar->add($strreports, new moodle_url('/course/report.php', array('id'=>$course->id)));
if (has_capability('moodle/site:viewreports', $context)) {
$PAGE->navbar->add($strreports, new moodle_url('/course/report.php', array('id'=>$course->id)));
}
$PAGE->navbar->add($strcompletion);
echo $OUTPUT->header();

Expand Down

0 comments on commit a7382d3

Please sign in to comment.