MDL-69559 course: Add course setting and cap to control course downloads

This commit is contained in:
Michael Hawkins
2020-10-26 10:25:37 +08:00
parent c053b93f0c
commit d358b91e2b
9 changed files with 210 additions and 3 deletions
+10
View File
@@ -2588,4 +2588,14 @@ $capabilities = array(
'manager' => CAP_ALLOW
)
],
// Allow users to configure download course content functionality within a course, if the feature is available.
'moodle/course:configuredownloadcontent' => [
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
],
);