From: gustav_delius Date: Sat, 8 May 2004 15:56:37 +0000 (+0000) Subject: fixed bug 990 which allowed students to see grades even when they were not supposed... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c9e29670779628fd4826e3ecb991e0f17a257de1;p=moodle.git fixed bug 990 which allowed students to see grades even when they were not supposed to by typing in the URL --- diff --git a/course/grade.php b/course/grade.php index b1bf0ed5f1..9a66ab269c 100644 --- a/course/grade.php +++ b/course/grade.php @@ -1,16 +1,20 @@ showgrades) { + error("Grades are not available for students in this course"); + } - require_login($course->id); + require_login($course->id); $strgrades = get_string("grades"); $strgrade = get_string("grade");