From: toyomoyo Date: Mon, 26 Nov 2007 06:01:26 +0000 (+0000) Subject: MDL-12331, hidden teacher should not be displayed in choice results X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fb656c9f40d3b9c9dd48f7aafbbbd92591a40901;p=moodle.git MDL-12331, hidden teacher should not be displayed in choice results --- diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 80d88665bb..de9d6420a9 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -327,7 +327,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { $currentgroup = 0; } - $users = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', true); + $users = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', false, true); if (!empty($CFG->enablegroupings) && !empty($cm->groupingid) && !empty($users)) { $groupingusers = groups_get_grouping_members($cm->groupingid, 'u.id', 'u.id');