Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…pants"
  • Loading branch information...
commit dbd0d6062cababe1a285b331448c89fcc0b59d3a 1 parent cee781b
dongsheng authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  user/index.php
View
2  user/index.php
@@ -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";
}
Please sign in to comment.
Something went wrong with that request. Please try again.