d70463cfba
Todo for first usable version: Add level customization per levelset (course)
26 lines
655 B
PHP
26 lines
655 B
PHP
<?php
|
|
$capabilities = array(
|
|
|
|
'block/gradelevel:myaddinstance' => array(
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'user' => CAP_ALLOW
|
|
),
|
|
|
|
'clonepermissionsfrom' => 'moodle/my:manageblocks'
|
|
),
|
|
|
|
'block/gradelevel:addinstance' => array(
|
|
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
|
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_BLOCK,
|
|
'archetypes' => array(
|
|
'editingteacher' => CAP_ALLOW,
|
|
'manager' => CAP_ALLOW
|
|
),
|
|
|
|
'clonepermissionsfrom' => 'moodle/site:manageblocks'
|
|
),
|
|
); |