NOBUG: Use correct cap name

This commit is contained in:
Eloy Lafuente
2010-04-30 08:34:53 +00:00
parent 7969834463
commit dec2c30c0a
+1 -1
View File
@@ -388,7 +388,7 @@ class file_browser {
}
$downloadable = has_capability('moodle/backup:downloadfile', $context);
$uploadable = has_capability('moodle/backup:uploadfile', $context);
$uploadable = has_capability('moodle/restore:uploadfile', $context);
return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areabackup', 'repository'), false, $downloadable, $uploadable, false);
}