mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
MDL-21781 cohort capabilities
This commit is contained in:
parent
74180df287
commit
3f791403b3
@ -470,6 +470,39 @@ $capabilities = array(
|
||||
'clonepermissionsfrom' => 'moodle/category:visibility'
|
||||
),
|
||||
|
||||
// create, delete, move cohorts in system and course categories,
|
||||
// (cohorts with component !== null can be only moved)
|
||||
'moodle/cohort:manage' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSECAT,
|
||||
'legacy' => array(
|
||||
'manager' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
// add and remove cohort members (only for cohorts where component !== null)
|
||||
'moodle/cohort:assign' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSECAT,
|
||||
'legacy' => array(
|
||||
'manager' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
// view members of a cohort, this can be used in course context too,
|
||||
// this also controls the ability to actually use cohort
|
||||
'moodle/cohort:view' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'moodle/course:create' => array(
|
||||
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user