diff --git a/user/index.php b/user/index.php index 39aeac28a20..c66d5294a9c 100644 --- a/user/index.php +++ b/user/index.php @@ -803,7 +803,8 @@ $PAGE->requires->js_init_call('M.core_user.init_participation', null, false, $module); } - if (has_capability('moodle/site:viewparticipants', $context) && $totalcount > ($perpage*3)) { + // Show a search box if all participants don't fit on a single screen + if ($totalcount > $perpage) { echo '
'; echo ''; echo ' 
'."\n";