From: defacer Date: Fri, 14 May 2004 07:11:48 +0000 (+0000) Subject: Martin pointed out that only editing teachers get to see all the groups. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ef3ae69ebd13d826f23172f2e865768ee53e65c4;p=moodle.git Martin pointed out that only editing teachers get to see all the groups. --- diff --git a/calendar/lib.php b/calendar/lib.php index bf83720b69..6af01e2cf9 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1085,8 +1085,8 @@ function calendar_set_filters(&$courses, &$group, &$user, $defaultcourses = NULL // For each course... foreach($groupcourses as $courseid => $dummy) { - // If the user is a teacher in there, - if(isteacher($courseid, $USER->id)) { + // If the user is an editing teacher in there, + if(isteacheredit($courseid, $USER->id)) { // Show events from all groups if(($grouprecords = get_groups($courseid)) !== false) { $grouparray = array_merge($grouparray, array_keys($grouprecords));