"MDL-18723, role required to display search box should be viewparticipants, merged from 1.9"
This commit is contained in:
+1
-1
@@ -1002,7 +1002,7 @@
|
||||
|
||||
}
|
||||
|
||||
if ($bulkoperations && $totalcount > ($perpage*3)) {
|
||||
if (has_capability('moodle/site:viewparticipants', $context) && $totalcount > ($perpage*3)) {
|
||||
echo '<form action="index.php" class="searchform"><div><input type="hidden" name="id" value="'.$course->id.'" />'.get_string('search').': '."\n";
|
||||
echo '<input type="text" name="search" value="'.s($search).'" /> <input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user