Skip to content

Commit

Permalink
MDL-12331, hidden teacher should not be displayed in choice results
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Nov 26, 2007
1 parent 18da0c2 commit fb656c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/choice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit fb656c9

Please sign in to comment.