From ef3ae69ebd13d826f23172f2e865768ee53e65c4 Mon Sep 17 00:00:00 2001 From: defacer Date: Fri, 14 May 2004 07:11:48 +0000 Subject: [PATCH] Martin pointed out that only editing teachers get to see all the groups. --- calendar/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.39.5