<?php // $Id: access.php 68 2009-07-31 18:23:01Z dlandau $
/**
 * Capability definitions for the lesson module.
 *
 * For naming conventions, see lib/db/access.php.
 */
$mod_lesson_capabilities = array(

    'mod/lesson:edit' => array(

        'riskbitmask' => RISK_XSS,

        'captype' => 'write',
        'contextlevel' => CONTEXT_MODULE,
        'legacy' => array(
            'editingteacher' => CAP_ALLOW,
            'admin' => CAP_ALLOW
        )
    ),

    'mod/lesson:manage' => array(

        'captype' => 'write',
        'contextlevel' => CONTEXT_MODULE,
        'legacy' => array(
            'teacher' => CAP_ALLOW,
            'editingteacher' => CAP_ALLOW,
            'admin' => CAP_ALLOW
        )
    )
);
