mirror of
https://github.com/moodle/moodle.git
synced 2025-03-09 02:10:00 +01:00
39 lines
956 B
PHP
39 lines
956 B
PHP
<?php // $Id$
|
|
/**
|
|
* 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(
|
|
'guest' => CAP_PREVENT,
|
|
'student' => CAP_PREVENT,
|
|
'teacher' => CAP_PREVENT,
|
|
'editingteacher' => CAP_ALLOW,
|
|
'coursecreator' => CAP_ALLOW,
|
|
'admin' => CAP_ALLOW
|
|
)
|
|
),
|
|
|
|
'mod/lesson:manage' => array(
|
|
|
|
'captype' => 'write',
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
'legacy' => array(
|
|
'guest' => CAP_PREVENT,
|
|
'student' => CAP_PREVENT,
|
|
'teacher' => CAP_ALLOW,
|
|
'editingteacher' => CAP_ALLOW,
|
|
'coursecreator' => CAP_ALLOW,
|
|
'admin' => CAP_ALLOW
|
|
)
|
|
)
|
|
);
|