<?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
        ),
    ],


];
