MDL-75318 core: Capability to share course to MoodleNet

This commit is contained in:
Safat
2023-08-22 11:00:06 +10:00
parent e998f14061
commit a0238f277d
5 changed files with 89 additions and 5 deletions
+10
View File
@@ -2724,4 +2724,14 @@ $capabilities = array(
'manager' => CAP_ALLOW,
]
],
// Allow users to share courses to MoodleNet.
'moodle/moodlenet:sharecourse' => [
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => [
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
]
],
);