51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
<?php
|
|
|
|
$capabilities = [
|
|
|
|
'local/treestudyplan:editstudyplan' => [
|
|
'riskbitmask' => RISK_DATALOSS ,
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'manager' => CAP_ALLOW
|
|
),
|
|
],
|
|
|
|
'local/treestudyplan:forcescales' => [
|
|
'riskbitmask' => RISK_DATALOSS ,
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'manager' => CAP_ALLOW
|
|
),
|
|
],
|
|
|
|
'local/treestudyplan:selectowngradables' => [
|
|
'riskbitmask' => RISK_DATALOSS ,
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'teacher' => CAP_ALLOW
|
|
),
|
|
],
|
|
|
|
'local/treestudyplan:configure' => [
|
|
'riskbitmask' => RISK_DATALOSS ,
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'manager' => CAP_ALLOW
|
|
),
|
|
],
|
|
|
|
'local/treestudyplan:viewuserreports' => [
|
|
'riskbitmask' => RISK_PERSONAL ,
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
'archetypes' => array(
|
|
'manager' => CAP_ALLOW
|
|
),
|
|
],
|
|
|
|
|
|
];
|