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

This commit is contained in:
dongsheng
2009-10-02 06:49:47 +00:00
parent cee781ba9e
commit dbd0d6062c
+1 -1
View File
@@ -787,7 +787,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";
}