mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-69269 contentbank: add support to download content
This commit is contained in:
parent
4a6a2636a0
commit
c3a4859c7d
9 changed files with 255 additions and 6 deletions
|
@ -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,
|
||||
]
|
||||
],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue