mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-12331, hidden teacher should not be displayed in choice results
This commit is contained in:
parent
827100874d
commit
e489cc2f8d
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,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, '', 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) {
|
||||
print_heading(get_string("nousersyet"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue