2006-09-06 08:41:47 +00:00
|
|
|
<?php // $Id$
|
|
|
|
/**
|
|
|
|
* Capability definitions for the workshop module.
|
2006-09-20 21:00:45 +00:00
|
|
|
*
|
2006-09-06 08:41:47 +00:00
|
|
|
* For naming conventions, see lib/db/access.php.
|
|
|
|
*/
|
|
|
|
$mod_workshop_capabilities = array(
|
|
|
|
|
|
|
|
'mod/workshop:participate' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-09-06 08:41:47 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
2006-10-11 06:21:58 +00:00
|
|
|
'student' => CAP_ALLOW
|
2006-09-06 08:41:47 +00:00
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
'mod/workshop:manage' => array(
|
2006-09-20 21:00:45 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-09-06 08:41:47 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'admin' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
)
|
2006-09-12 05:58:42 +00:00
|
|
|
);
|