2009-11-04 19:53:01 +00:00
|
|
|
<?php
|
2006-09-10 19:44:28 +00:00
|
|
|
/**
|
2006-09-20 21:00:45 +00:00
|
|
|
*
|
2010-05-02 11:28:11 +00:00
|
|
|
* This file defines all wiki module specific capabilities
|
|
|
|
*
|
|
|
|
* @author Jordi Piguillem
|
|
|
|
*
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
|
|
* @package wiki
|
2006-09-10 19:44:28 +00:00
|
|
|
*/
|
2010-05-02 11:28:11 +00:00
|
|
|
|
2009-11-04 19:24:12 +00:00
|
|
|
$capabilities = array(
|
2006-09-10 19:44:28 +00:00
|
|
|
|
2010-05-02 11:28:11 +00:00
|
|
|
'mod/wiki:viewpage' => array(
|
|
|
|
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'guest' => CAP_ALLOW,
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
'mod/wiki:editpage' => array(
|
2006-09-10 19:44:28 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2006-09-10 19:44:28 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
2010-03-31 07:41:31 +00:00
|
|
|
'manager' => CAP_ALLOW
|
2006-09-10 19:44:28 +00:00
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2010-05-02 11:28:11 +00:00
|
|
|
'mod/wiki:createpage' => array(
|
2006-09-10 19:44:28 +00:00
|
|
|
|
2006-09-18 21:32:49 +00:00
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
2010-05-02 11:28:11 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
'mod/wiki:viewcomment' => array(
|
|
|
|
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
'mod/wiki:editcomment' => array(
|
|
|
|
|
|
|
|
'riskbitmask' => RISK_SPAM,
|
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'student' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
'mod/wiki:managecomment' => array(
|
|
|
|
|
2006-09-10 19:44:28 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
2010-03-31 07:41:31 +00:00
|
|
|
'manager' => CAP_ALLOW
|
2006-09-10 19:44:28 +00:00
|
|
|
)
|
2006-09-25 17:42:32 +00:00
|
|
|
),
|
2009-11-04 19:53:01 +00:00
|
|
|
|
2006-09-25 17:42:32 +00:00
|
|
|
'mod/wiki:overridelock' => array(
|
|
|
|
|
2010-05-02 11:28:11 +00:00
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
'mod/wiki:managewiki' => array(
|
2006-09-25 17:42:32 +00:00
|
|
|
|
|
|
|
'captype' => 'write',
|
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
|
|
|
'legacy' => array(
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
2010-03-31 07:41:31 +00:00
|
|
|
'manager' => CAP_ALLOW
|
2006-09-25 17:42:32 +00:00
|
|
|
)
|
2010-05-02 11:28:11 +00:00
|
|
|
),
|
2006-09-12 05:58:42 +00:00
|
|
|
);
|