MDL-21666 backup & restore caps - renaming the import one

This commit is contained in:
Eloy Lafuente
2010-02-19 19:11:06 +00:00
parent 2fdde5d178
commit 157aa3a22d
7 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ class block_admin extends block_list {
}
/// Import data from other courses
if ($course->id !== SITEID and has_capability('moodle/site:import', $this->page->context)) {
if ($course->id !== SITEID and has_capability('moodle/restore:restoretargetimport', $this->page->context)) {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/import.php?id='.$course->id.'">'.get_string('import').'</a>';
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/restore') . '" class="icon" alt="" />';
}