"MDL-18723, role required to display search box should be viewparticipants, merged from 1.9"

This commit is contained in:
dongsheng
2009-10-02 06:51:56 +00:00
parent 183ea48968
commit 3a8f4b907f
+1 -1
View File
@@ -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";
}