Skip to content

Commit

Permalink
"MDL-18723, role required to display search box should be viewpartici…
Browse files Browse the repository at this point in the history
…pants, merged from 1.9"
  • Loading branch information
dongsheng committed Oct 2, 2009
1 parent 183ea48 commit 3a8f4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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').':&nbsp;'."\n";
echo '<input type="text" name="search" value="'.s($search).'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
}
Expand Down

0 comments on commit 3a8f4b9

Please sign in to comment.