mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-37765 course: Add capability to ignore availability restrictions.
Allow a role to view activities without addressing the restriction rules.
This commit is contained in:
parent
216ea39be7
commit
6a36b8526e
8 changed files with 73 additions and 13 deletions
|
@ -921,6 +921,18 @@ $capabilities = array(
|
|||
)
|
||||
),
|
||||
|
||||
'moodle/course:ignoreavailabilityrestrictions' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'archetypes' => array(
|
||||
'manager' => CAP_ALLOW,
|
||||
'coursecreator' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'teacher' => CAP_ALLOW,
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:viewhiddenactivities'
|
||||
),
|
||||
|
||||
'moodle/course:ignorefilesizelimits' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue