. /** * Capability definitions for the lesson module. * * For naming conventions, see lib/db/access.php. * * @package mod * @subpackage lesson * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late */ defined('MOODLE_INTERNAL') || die(); $capabilities = array( 'mod/lesson:edit' => array( 'riskbitmask' => RISK_XSS, // we want flash and JS in question pages 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ), 'mod/lesson:manage' => array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ) );