[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * Plugin capabilities 19 * 20 * @package mod_wiki 21 * @author Jordi Piguillem 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 */ 24 25 defined('MOODLE_INTERNAL') || die(); 26 27 $capabilities = array( 28 29 'mod/wiki:addinstance' => array( 30 'riskbitmask' => RISK_XSS, 31 32 'captype' => 'write', 33 'contextlevel' => CONTEXT_COURSE, 34 'archetypes' => array( 35 'editingteacher' => CAP_ALLOW, 36 'manager' => CAP_ALLOW 37 ), 38 'clonepermissionsfrom' => 'moodle/course:manageactivities' 39 ), 40 41 'mod/wiki:viewpage' => array( 42 43 'captype' => 'read', 44 'contextlevel' => CONTEXT_MODULE, 45 'archetypes' => array( 46 'guest' => CAP_ALLOW, 47 'student' => CAP_ALLOW, 48 'teacher' => CAP_ALLOW, 49 'editingteacher' => CAP_ALLOW, 50 'manager' => CAP_ALLOW 51 ) 52 ), 53 54 'mod/wiki:editpage' => array( 55 56 'riskbitmask' => RISK_SPAM, 57 58 'captype' => 'write', 59 'contextlevel' => CONTEXT_MODULE, 60 'archetypes' => array( 61 'student' => CAP_ALLOW, 62 'teacher' => CAP_ALLOW, 63 'editingteacher' => CAP_ALLOW, 64 'manager' => CAP_ALLOW 65 ) 66 ), 67 68 'mod/wiki:createpage' => array( 69 70 'riskbitmask' => RISK_SPAM, 71 72 'captype' => 'write', 73 'contextlevel' => CONTEXT_MODULE, 74 'archetypes' => array( 75 'student' => CAP_ALLOW, 76 'teacher' => CAP_ALLOW, 77 'editingteacher' => CAP_ALLOW, 78 'manager' => CAP_ALLOW 79 ) 80 ), 81 82 'mod/wiki:viewcomment' => array( 83 84 'captype' => 'read', 85 'contextlevel' => CONTEXT_MODULE, 86 'archetypes' => array( 87 'student' => CAP_ALLOW, 88 'teacher' => CAP_ALLOW, 89 'editingteacher' => CAP_ALLOW, 90 'manager' => CAP_ALLOW 91 ) 92 ), 93 94 'mod/wiki:editcomment' => array( 95 96 'riskbitmask' => RISK_SPAM, 97 98 'captype' => 'write', 99 'contextlevel' => CONTEXT_MODULE, 100 'archetypes' => array( 101 'student' => CAP_ALLOW, 102 'teacher' => CAP_ALLOW, 103 'editingteacher' => CAP_ALLOW, 104 'manager' => CAP_ALLOW 105 ) 106 ), 107 108 'mod/wiki:managecomment' => array( 109 110 'captype' => 'write', 111 'contextlevel' => CONTEXT_MODULE, 112 'archetypes' => array( 113 'teacher' => CAP_ALLOW, 114 'editingteacher' => CAP_ALLOW, 115 'manager' => CAP_ALLOW 116 ) 117 ), 118 119 'mod/wiki:managefiles' => array( 120 121 'captype' => 'write', 122 'contextlevel' => CONTEXT_MODULE, 123 'archetypes' => array( 124 'teacher' => CAP_ALLOW, 125 'editingteacher' => CAP_ALLOW, 126 'manager' => CAP_ALLOW 127 ) 128 ), 129 130 'mod/wiki:overridelock' => array( 131 132 'captype' => 'write', 133 'contextlevel' => CONTEXT_MODULE, 134 'archetypes' => array( 135 'teacher' => CAP_ALLOW, 136 'editingteacher' => CAP_ALLOW, 137 'manager' => CAP_ALLOW 138 ) 139 ), 140 141 'mod/wiki:managewiki' => array( 142 143 'captype' => 'write', 144 'contextlevel' => CONTEXT_MODULE, 145 'archetypes' => array( 146 'teacher' => CAP_ALLOW, 147 'editingteacher' => CAP_ALLOW, 148 'manager' => CAP_ALLOW 149 ) 150 ), 151 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |