From 6e28edc532f4d98f0f4ceb1bfe1fa4f0963dd586 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 1 May 2008 22:18:45 +0000 Subject: [PATCH] MDL-14617 removed get_group_teachers code --- lib/deprecatedlib.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index c48d6815f9..d05523fef0 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -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 ########################################################################## -- 2.39.5