Files
moodle/mod/workshop/db/access.php
2006-09-22 03:28:56 +00:00

41 lines
1013 B
PHP

<?php // $Id$
/**
* Capability definitions for the workshop module.
*
* For naming conventions, see lib/db/access.php.
*/
$mod_workshop_capabilities = array(
'mod/workshop:participate' => array(
'riskbitmask' => RISK_SPAM,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'guest' => CAP_PREVENT,
'student' => CAP_ALLOW,
'teacher' => CAP_PREVENT,
'editingteacher' => CAP_PREVENT,
'coursecreator' => CAP_PREVENT,
'admin' => CAP_PREVENT
)
),
'mod/workshop:manage' => array(
'riskbitmask' => RISK_SPAM,
'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
)
)
);