Improved display of grades when grades should not be shown MDL-7150

This commit is contained in:
moodler
2006-10-31 15:06:02 +00:00
parent 7675f212ee
commit 67145bac78
3 changed files with 16 additions and 11 deletions
+3 -3
View File
@@ -170,10 +170,10 @@
'&user='.$user->id.'&mode=stats',get_string('stats'));
}
// needs permission checking!!!
$secondrow[] = new tabobject('grade', $CFG->wwwroot.'/course/user.php?id='.$course->id.
if ($course->showgrades) {
$secondrow[] = new tabobject('grade', $CFG->wwwroot.'/course/user.php?id='.$course->id.
'&user='.$user->id.'&mode=grade', get_string('grade'));
}
}