]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14617 removed get_group_teachers code
authorskodak <skodak>
Thu, 1 May 2008 22:18:45 +0000 (22:18 +0000)
committerskodak <skodak>
Thu, 1 May 2008 22:18:45 +0000 (22:18 +0000)
lib/deprecatedlib.php

index c48d6815f9e195df2b9bc4cc4b0d37358049da0b..d05523fef05d6e86125d9ba839a64480884926ba 100644 (file)
@@ -579,31 +579,6 @@ function get_group_students($groupids, $sort='ul.timeaccess DESC') {
     return get_users_by_capability($context, 'moodle/legacy:student', 'u.*, ul.timeaccess as lastaccess', $sort, '','',$groupids, '', false);
 }
 
-/**
- * Returns list of all the teachers who can access a group
- *
- * @uses $CFG
- * @param int $courseid The course in question.
- * @param int $groupid The group in question.
- * @return object
- */
-function get_group_teachers($courseid, $groupid) {
-/// Returns a list of all the teachers who can access a group
-    if ($teachers = get_course_teachers($courseid)) {
-        foreach ($teachers as $key => $teacher) {
-            if ($teacher->editall) {             // These can access anything
-                continue;
-            }
-            if (($teacher->authority > 0) and groups_is_member($groupid, $teacher->id)) {  // Specific group teachers
-                continue;
-            }
-            unset($teachers[$key]);
-        }
-    }
-    return $teachers;
-}
-
-
 
 ########### FROM weblib.php ##########################################################################