NOBUG: Use correct cap name
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user