From dbd0d6062cababe1a285b331448c89fcc0b59d3a Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 2 Oct 2009 06:49:47 +0000 Subject: [PATCH] "MDL-18723, role required to display search box should be viewparticipants" --- user/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/index.php b/user/index.php index 5380bef783e..04354cdf16c 100644 --- a/user/index.php +++ b/user/index.php @@ -787,7 +787,7 @@ } - if ($bulkoperations && $totalcount > ($perpage*3)) { + if (has_capability('moodle/site:viewparticipants', $context) && $totalcount > ($perpage*3)) { echo '
'.get_string('search').': '."\n"; echo ' 
'."\n"; }