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