2018-09-17 13:12:56 +02:00
|
|
|
<?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'
|
|
|
|
),
|
2018-09-21 22:30:09 +02:00
|
|
|
|
|
|
|
'block/gradelevel:skillmanager' => array(
|
|
|
|
'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_XSS,
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'archetypes' => array(
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'block/gradelevel:viewresults' => array(
|
|
|
|
'riskbitmask' => RISK_DATALOSS | RISK_XSS,
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_BLOCK,
|
|
|
|
'archetypes' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
2018-09-17 13:12:56 +02:00
|
|
|
);
|