MDL-67795 contentbank: delete content API
This commit is contained in:
+21
-1
@@ -2501,5 +2501,25 @@ $capabilities = array(
|
||||
'coursecreator' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
// Delete any content from the content bank.
|
||||
'moodle/contentbank:deleteanycontent' => [
|
||||
'riskbitmask' => RISK_DATALOSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => [
|
||||
'manager' => CAP_ALLOW,
|
||||
'coursecreator' => CAP_ALLOW,
|
||||
]
|
||||
],
|
||||
|
||||
// Delete content created by yourself.
|
||||
'moodle/contentbank:deleteowncontent' => [
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => [
|
||||
'user' => CAP_ALLOW,
|
||||
]
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user