MDL-12331, hidden teacher should not be displayed in choice results

This commit is contained in:
toyomoyo 2007-11-26 05:58:21 +00:00
parent 827100874d
commit e489cc2f8d

View file

@ -319,7 +319,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') {
$currentgroup = 0; $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, '', false); $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 (!$users) { if (!$users) {
print_heading(get_string("nousersyet")); print_heading(get_string("nousersyet"));