MDL-61444 question: add question tagmine and tagall capabilities

This commit is contained in:
Simey Lameze 2018-02-19 10:26:38 +08:00
parent d1b4ca921e
commit 34cd75240e
3 changed files with 25 additions and 1 deletions

View file

@ -1483,6 +1483,28 @@ $capabilities = array(
)
),
// Controls whether the user can tag his own questions.
'moodle/question:tagmine' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/question:editmine'
),
// Controls whether the user can tag all questions.
'moodle/question:tagall' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/question:editall'
),
'moodle/site:doclinks' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,