Permalink
Browse files

"MDL-18723, role required to display search box should be viewpartici…

…pants"
  • Loading branch information...
dongsheng
dongsheng committed Oct 2, 2009
1 parent cee781b commit dbd0d6062cababe1a285b331448c89fcc0b59d3a
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/index.php
View
@@ -787,7 +787,7 @@ function checkchecked(form) {
}
- 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').':&nbsp;'."\n";
echo '<input type="text" name="search" value="'.s($search).'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
}

0 comments on commit dbd0d60

Please sign in to comment.