mirror of
https://github.com/moodle/moodle.git
synced 2025-05-31 21:19:49 +02:00
NOBUG: Use correct cap name
This commit is contained in:
parent
7969834463
commit
dec2c30c0a
@ -388,7 +388,7 @@ class file_browser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$downloadable = has_capability('moodle/backup:downloadfile', $context);
|
$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);
|
return new file_info_stored($this, $context, $storedfile, $urlbase, get_string('areabackup', 'repository'), false, $downloadable, $uploadable, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user