]> git.mjollnir.org Git - moodle.git/commitdiff
Martin pointed out that only editing teachers get to see all the groups.
authordefacer <defacer>
Fri, 14 May 2004 07:11:48 +0000 (07:11 +0000)
committerdefacer <defacer>
Fri, 14 May 2004 07:11:48 +0000 (07:11 +0000)
calendar/lib.php

index bf83720b691cf5d3aa1bb30c0f6e2b7cb7474a6d..6af01e2cf905ed26016f4f1cb57a7ef3efcf0838 100644 (file)
@@ -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));