MDL-69559 course: Add course setting and cap to control course downloads
This commit is contained in:
@@ -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
|
||||
)
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user