MDL-69269 contentbank: add support to download content

This commit is contained in:
Sara Arjona 2020-08-13 14:36:26 +02:00
parent 4a6a2636a0
commit c3a4859c7d
9 changed files with 255 additions and 6 deletions

View file

@ -2565,4 +2565,15 @@ $capabilities = array(
'editingteacher' => CAP_ALLOW,
)
],
// Allow users to download content.
'moodle/contentbank:downloadcontent' => [
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => [
'manager' => CAP_ALLOW,
'coursecreator' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
]
],
);