mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-29801 core_message: added delete message caps
This commit is contained in:
parent
1efd323842
commit
4582308508
2 changed files with 22 additions and 0 deletions
|
@ -77,6 +77,17 @@ $capabilities = array(
|
|||
)
|
||||
),
|
||||
|
||||
'moodle/site:deleteanymessage' => array(
|
||||
|
||||
'riskbitmask' => RISK_DATALOSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'archetypes' => array(
|
||||
'manager' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'moodle/site:sendmessage' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
|
@ -89,6 +100,15 @@ $capabilities = array(
|
|||
)
|
||||
),
|
||||
|
||||
'moodle/site:deleteownmessage' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'archetypes' => array(
|
||||
'user' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'moodle/site:approvecourse' => array(
|
||||
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue