2006-08-08 05:13:06 +00:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// Capability definitions for Moodle core.
|
|
|
|
//
|
|
|
|
// The capabilities are loaded into the database table when the module is
|
|
|
|
// installed or updated. Whenever the capability definitions are updated,
|
|
|
|
// the module version number should be bumped up.
|
|
|
|
//
|
|
|
|
// The system has four possible values for a capability:
|
|
|
|
// CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// CAPABILITY NAMING CONVENTION
|
|
|
|
//
|
|
|
|
// It is important that capability names are unique. The naming convention
|
|
|
|
// for capabilities that are specific to modules and blocks is as follows:
|
|
|
|
// [mod/block]/<component_name>:<capabilityname>
|
|
|
|
//
|
|
|
|
// component_name should be the same as the directory name of the mod or block.
|
|
|
|
//
|
|
|
|
// Core moodle capabilities are defined thus:
|
|
|
|
// moodle/<capabilityclass>:<capabilityname>
|
|
|
|
//
|
|
|
|
// Examples: mod/forum:viewpost
|
|
|
|
// block/recent_activity:view
|
|
|
|
// moodle/site:deleteuser
|
|
|
|
//
|
|
|
|
// The variable name for the capability definitions array follows the format
|
|
|
|
// $<componenttype>_<component_name>_capabilities
|
|
|
|
//
|
|
|
|
// For the core capabilities, the variable is $moodle_capabilities.
|
|
|
|
|
|
|
|
|
|
|
|
$moodle_capabilities = array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/site:doanything' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-19 07:33:22 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'admin',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/legacy:guest' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2007-01-31 21:05:32 +00:00
|
|
|
'moodle/legacy:user' => array(
|
|
|
|
|
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/legacy:student' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/legacy:teacher' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/legacy:editingteacher' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/legacy:coursecreator' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/legacy:admin' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-19 07:33:22 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'legacy',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/site:config' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-19 07:33:22 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
|
2006-09-18 21:32:49 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-08 08:46:26 +00:00
|
|
|
'moodle/site:readallmessages' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-24 08:02:26 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-09-08 08:46:26 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2007-03-14 01:37:07 +00:00
|
|
|
'admin' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW
|
2006-09-08 08:46:26 +00:00
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-08 08:46:26 +00:00
|
|
|
'moodle/site:approvecourse' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-24 08:02:26 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-09-08 08:46:26 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/site:import' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-08-15 04:13:22 +00:00
|
|
|
'editingteacher' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/site:backup' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-10-10 02:52:08 +00:00
|
|
|
'editingteacher' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/site:restore' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-10-10 02:52:08 +00:00
|
|
|
'editingteacher' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/site:manageblocks' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-09-13 04:09:31 +00:00
|
|
|
'editingteacher' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 06:45:25 +00:00
|
|
|
'moodle/site:accessallgroups' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 06:45:25 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-09 09:16:35 +00:00
|
|
|
'moodle/site:viewfullnames' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-09 09:16:35 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-15 04:13:22 +00:00
|
|
|
'moodle/site:viewreports' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-08-15 04:13:22 +00:00
|
|
|
'captype' => 'read',
|
2006-08-16 07:57:51 +00:00
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
2006-08-15 04:13:22 +00:00
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-26 13:00:07 +00:00
|
|
|
'moodle/site:trustcontent' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-26 13:00:07 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-24 12:54:53 +00:00
|
|
|
'moodle/site:uploadusers' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-24 12:54:53 +00:00
|
|
|
|
|
|
|
'moodle/user:create' => array(
|
|
|
|
|
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-24 12:54:53 +00:00
|
|
|
'moodle/user:delete' => array(
|
2006-09-24 12:31:49 +00:00
|
|
|
|
2006-10-24 08:02:26 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-09-24 12:31:49 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2006-09-24 12:54:53 +00:00
|
|
|
'moodle/user:update' => array(
|
2006-09-24 12:31:49 +00:00
|
|
|
|
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
|
2006-09-18 21:32:49 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/user:viewdetails' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-15 14:39:16 +00:00
|
|
|
'captype' => 'read',
|
2006-08-08 05:13:06 +00:00
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-12-07 06:14:52 +00:00
|
|
|
'guest' => CAP_ALLOW,
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-15 14:39:16 +00:00
|
|
|
|
|
|
|
'moodle/user:viewhiddendetails' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-09-15 14:39:16 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-01 05:46:55 +00:00
|
|
|
'moodle/user:viewusergrades' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-10-01 05:46:55 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-10-01 05:46:55 +00:00
|
|
|
'moodle/user:loginas' => array(
|
|
|
|
|
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/role:assign' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-09-21 16:02:39 +00:00
|
|
|
'editingteacher' => CAP_ALLOW,
|
2006-08-18 08:01:16 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-18 08:01:16 +00:00
|
|
|
'moodle/role:override' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-24 08:02:26 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
|
|
|
|
2006-08-18 08:01:16 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/role:manage' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-24 08:02:26 +00:00
|
|
|
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-07 08:35:30 +00:00
|
|
|
|
|
|
|
'moodle/role:unassignself' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-07 08:35:30 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-10-11 06:21:58 +00:00
|
|
|
'student' => (empty($CFG->allowunenrol)) ? CAP_INHERIT : CAP_ALLOW,
|
2006-09-07 08:35:30 +00:00
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'coursecreator' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-16 13:56:24 +00:00
|
|
|
|
|
|
|
'moodle/role:viewhiddenassigns' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-16 13:56:24 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-21 07:44:53 +00:00
|
|
|
'moodle/role:switchroles' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-21 07:44:53 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-21 07:44:53 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/category:create' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSECAT,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/category:delete' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSECAT,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/category:update' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSECAT,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/category:visibility' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSECAT,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:create' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
2007-03-14 21:42:38 +00:00
|
|
|
'contextlevel' => CONTEXT_COURSECAT,
|
2006-08-08 05:13:06 +00:00
|
|
|
'legacy' => array(
|
2006-10-10 03:03:17 +00:00
|
|
|
'coursecreator' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:delete' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:update' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:view' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
2006-09-12 08:15:07 +00:00
|
|
|
'guest' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-28 06:41:07 +00:00
|
|
|
'moodle/course:bulkmessaging' => array(
|
|
|
|
|
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2006-09-11 08:56:23 +00:00
|
|
|
'moodle/course:viewhiddenuserfields' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-09-11 08:56:23 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-11 08:56:23 +00:00
|
|
|
'moodle/course:viewhiddencourses' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-11 08:56:23 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
2007-03-15 04:23:21 +00:00
|
|
|
'coursecreator' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
2006-09-11 08:56:23 +00:00
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:visibility' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-15 04:13:22 +00:00
|
|
|
'moodle/course:managefiles' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-15 04:13:22 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:manageactivities' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-19 06:35:52 +00:00
|
|
|
'moodle/course:managemetacourse' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-17 21:03:35 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:activityvisibility' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:viewhiddenactivities' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:viewparticipants' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:viewscales' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:managescales' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/course:managegroups' => array(
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
2006-08-15 04:13:22 +00:00
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-15 04:13:22 +00:00
|
|
|
'moodle/course:reset' => array(
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
2006-08-08 05:13:06 +00:00
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/blog:view' => array(
|
|
|
|
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2006-09-12 05:58:42 +00:00
|
|
|
'guest' => CAP_ALLOW,
|
2007-01-31 21:05:32 +00:00
|
|
|
'user' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-31 09:09:40 +00:00
|
|
|
'moodle/blog:create' => array( // works in CONTEXT_SYSTEM only
|
2006-08-08 05:13:06 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2007-01-31 21:05:32 +00:00
|
|
|
'user' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/blog:manageofficialtags' => array(
|
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/blog:managepersonaltags' => array(
|
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/blog:manageentries' => array(
|
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-10-31 09:09:40 +00:00
|
|
|
'moodle/calendar:manageownentries' => array( // works in CONTEXT_SYSTEM only
|
2006-08-08 05:13:06 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
2007-01-31 21:05:32 +00:00
|
|
|
'user' => CAP_ALLOW,
|
2006-08-08 05:13:06 +00:00
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'moodle/calendar:manageentries' => array(
|
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-08-08 05:13:06 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
2006-08-16 07:57:51 +00:00
|
|
|
),
|
2007-03-15 08:30:36 +00:00
|
|
|
|
|
|
|
'moodle/user:editprofile' => array(
|
|
|
|
|
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_USER,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
|
|
|
// The next 3 might make no sense for some roles, e.g teacher, etc.
|
2006-08-16 07:57:51 +00:00
|
|
|
// since the next level up is site. These are more for the parent role
|
|
|
|
'moodle/user:readuserposts' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-16 07:57:51 +00:00
|
|
|
'captype' => 'read',
|
2006-09-15 14:09:16 +00:00
|
|
|
'contextlevel' => CONTEXT_USER,
|
2006-08-16 07:57:51 +00:00
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-16 07:57:51 +00:00
|
|
|
'moodle/user:readuserblogs' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-16 07:57:51 +00:00
|
|
|
'captype' => 'read',
|
2006-09-15 14:09:16 +00:00
|
|
|
'contextlevel' => CONTEXT_USER,
|
2006-08-16 07:57:51 +00:00
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-16 07:57:51 +00:00
|
|
|
'moodle/user:viewuseractivitiesreport' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-16 07:57:51 +00:00
|
|
|
'captype' => 'read',
|
2006-09-15 14:09:16 +00:00
|
|
|
'contextlevel' => CONTEXT_USER,
|
2006-08-16 07:57:51 +00:00
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
2006-08-23 06:36:08 +00:00
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'moodle/question:import' => array(
|
2006-09-18 21:32:49 +00:00
|
|
|
|
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'moodle/question:export' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-07 08:35:30 +00:00
|
|
|
'moodle/question:managecategory' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'moodle/question:manage' => array(
|
2006-09-18 21:32:49 +00:00
|
|
|
|
|
|
|
'riskbitmask' => RISK_XSS,
|
|
|
|
|
2006-08-23 06:36:08 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
2006-09-03 16:26:55 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'moodle/site:doclinks' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-03 16:26:55 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
2006-09-05 08:50:23 +00:00
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'moodle/course:sectionvisibility' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-20 09:00:04 +00:00
|
|
|
'moodle/course:useremail' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-20 09:00:04 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'moodle/course:viewhiddensections' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'moodle/course:setcurrentsection' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'moodle/course:viewcoursegrades' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'moodle/course:managegrades' => array(
|
2006-10-24 08:02:26 +00:00
|
|
|
|
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
|
2006-09-05 08:50:23 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
|
|
|
'legacy' => array(
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
2007-01-04 03:30:37 +00:00
|
|
|
),
|
2006-09-07 08:35:30 +00:00
|
|
|
|
2007-01-04 03:30:37 +00:00
|
|
|
'moodle/site:mnetlogintoremote' => array(
|
|
|
|
'riskbitmask' => RISK_PERSONAL | RISK_XSS,
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_SYSTEM,
|
|
|
|
'legacy' => array(
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
)
|
2006-08-08 05:13:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
?>
|