MDL-13766, fixed repository instance name and configplugin language string
[moodle.git] / lib / db / access.php
CommitLineData
117bd748 1<?php
bbbf2d40 2//
3// Capability definitions for Moodle core.
4//
5// The capabilities are loaded into the database table when the module is
6// installed or updated. Whenever the capability definitions are updated,
7// the module version number should be bumped up.
8//
9// The system has four possible values for a capability:
10// CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
11//
12//
13// CAPABILITY NAMING CONVENTION
14//
15// It is important that capability names are unique. The naming convention
16// for capabilities that are specific to modules and blocks is as follows:
0ac940b3 17// [mod/block]/<plugin_name>:<capabilityname>
bbbf2d40 18//
19// component_name should be the same as the directory name of the mod or block.
20//
21// Core moodle capabilities are defined thus:
22// moodle/<capabilityclass>:<capabilityname>
23//
24// Examples: mod/forum:viewpost
25// block/recent_activity:view
26// moodle/site:deleteuser
27//
0ac940b3 28// The variable name for the capability definitions array is $capabilities
bbbf2d40 29
30
0ac940b3 31$capabilities = array(
bbbf2d40 32 'moodle/site:config' => array(
eef868d1 33
f432bebf 34 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG | RISK_DATALOSS,
21b6db6e 35
bbbf2d40 36 'captype' => 'write',
37 'contextlevel' => CONTEXT_SYSTEM,
31c93303 38 'archetypes' => array(
bbbf2d40 39 )
40 ),
eef868d1 41
51792df0 42 'moodle/site:readallmessages' => array(
eef868d1 43
bcdb0f19 44 'riskbitmask' => RISK_PERSONAL,
45
51792df0 46 'captype' => 'read',
47 'contextlevel' => CONTEXT_SYSTEM,
31c93303 48 'archetypes' => array(
4f0c2d00 49 'manager' => CAP_ALLOW,
4b7ae3c4 50 'editingteacher' => CAP_ALLOW
51792df0 51 )
52 ),
f7c0d84b 53
576ad290 54 'moodle/site:sendmessage' => array(
55
3a0c6cca 56 'riskbitmask' => RISK_SPAM,
576ad290 57
58 'captype' => 'write',
59 'contextlevel' => CONTEXT_SYSTEM,
31c93303 60 'archetypes' => array(
4f0c2d00 61 'manager' => CAP_ALLOW,
576ad290 62 'user' => CAP_ALLOW
63 )
f7c0d84b 64 ),
eef868d1 65
51792df0 66 'moodle/site:approvecourse' => array(
eef868d1 67
bcdb0f19 68 'riskbitmask' => RISK_XSS,
69
51792df0 70 'captype' => 'write',
71 'contextlevel' => CONTEXT_SYSTEM,
31c93303 72 'archetypes' => array(
4f0c2d00 73 'manager' => CAP_ALLOW
51792df0 74 )
75 ),
eef868d1 76
d2940003 77 'moodle/backup:backupcourse' => array(
eef868d1 78
21b6db6e 79 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
80
bbbf2d40 81 'captype' => 'write',
f432bebf 82 'contextlevel' => CONTEXT_COURSE,
31c93303 83 'archetypes' => array(
7246585a 84 'editingteacher' => CAP_ALLOW,
4f0c2d00 85 'manager' => CAP_ALLOW
d2940003
EL
86 ),
87
88 'clonepermissionsfrom' => 'moodle/site:backup'
bbbf2d40 89 ),
eef868d1 90
57ca97b3
EL
91 'moodle/backup:backupsection' => array(
92
93 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
94
95 'captype' => 'write',
96 'contextlevel' => CONTEXT_COURSE,
31c93303 97 'archetypes' => array(
57ca97b3
EL
98 'editingteacher' => CAP_ALLOW,
99 'manager' => CAP_ALLOW
100 ),
101
102 'clonepermissionsfrom' => 'moodle/backup:backupcourse'
103 ),
104
105 'moodle/backup:backupactivity' => array(
106
107 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
108
109 'captype' => 'write',
110 'contextlevel' => CONTEXT_MODULE,
31c93303 111 'archetypes' => array(
57ca97b3
EL
112 'editingteacher' => CAP_ALLOW,
113 'manager' => CAP_ALLOW
114 ),
115
116 'clonepermissionsfrom' => 'moodle/backup:backupcourse'
117 ),
118
119 'moodle/backup:backuptargethub' => array(
120
121 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
122
123 'captype' => 'write',
124 'contextlevel' => CONTEXT_COURSE,
31c93303 125 'archetypes' => array(
57ca97b3
EL
126 'editingteacher' => CAP_ALLOW,
127 'manager' => CAP_ALLOW
128 ),
129
130 'clonepermissionsfrom' => 'moodle/backup:backupcourse'
131 ),
132
133 'moodle/backup:backuptargetimport' => array(
134
135 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
136
137 'captype' => 'write',
138 'contextlevel' => CONTEXT_COURSE,
31c93303 139 'archetypes' => array(
57ca97b3
EL
140 'editingteacher' => CAP_ALLOW,
141 'manager' => CAP_ALLOW
142 ),
143
144 'clonepermissionsfrom' => 'moodle/backup:backupcourse'
145 ),
146
2fdde5d1 147 'moodle/backup:downloadfile' => array(
172dd12c 148
149 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
150
151 'captype' => 'write',
152 'contextlevel' => CONTEXT_COURSE,
31c93303 153 'archetypes' => array(
172dd12c 154 'editingteacher' => CAP_ALLOW,
4f0c2d00 155 'manager' => CAP_ALLOW
172dd12c 156 ),
157
2fdde5d1 158 'clonepermissionsfrom' => 'moodle/site:backupdownload'
172dd12c 159 ),
160
57ca97b3
EL
161 'moodle/backup:configure' => array(
162
163 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
164
165 'captype' => 'write',
166 'contextlevel' => CONTEXT_COURSE,
31c93303 167 'archetypes' => array(
57ca97b3
EL
168 'editingteacher' => CAP_ALLOW,
169 'manager' => CAP_ALLOW
170 )
171 ),
172
2fdde5d1 173 'moodle/backup:userinfo' => array(
172dd12c 174
2fdde5d1 175 'riskbitmask' => RISK_PERSONAL,
172dd12c 176
2fdde5d1 177 'captype' => 'read',
172dd12c 178 'contextlevel' => CONTEXT_COURSE,
31c93303 179 'archetypes' => array(
4f0c2d00 180 'manager' => CAP_ALLOW
2fdde5d1 181 )
172dd12c 182 ),
183
57ca97b3
EL
184 'moodle/backup:anonymise' => array(
185
186 'riskbitmask' => RISK_PERSONAL,
187
188 'captype' => 'read',
189 'contextlevel' => CONTEXT_COURSE,
31c93303 190 'archetypes' => array(
57ca97b3
EL
191 'manager' => CAP_ALLOW
192 )
193 ),
194
2fdde5d1 195 'moodle/restore:restorecourse' => array(
f2a0da6c 196
2fdde5d1 197 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
f2a0da6c 198
2fdde5d1 199 'captype' => 'write',
f2a0da6c 200 'contextlevel' => CONTEXT_COURSE,
31c93303 201 'archetypes' => array(
2fdde5d1 202 'editingteacher' => CAP_ALLOW,
4f0c2d00 203 'manager' => CAP_ALLOW
2fdde5d1
EL
204 ),
205
206 'clonepermissionsfrom' => 'moodle/site:restore'
f2a0da6c
EL
207 ),
208
57ca97b3
EL
209 'moodle/restore:restoresection' => array(
210
211 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
212
213 'captype' => 'write',
214 'contextlevel' => CONTEXT_COURSE,
31c93303 215 'archetypes' => array(
57ca97b3
EL
216 'editingteacher' => CAP_ALLOW,
217 'manager' => CAP_ALLOW
218 ),
219
220 'clonepermissionsfrom' => 'moodle/restore:restorecourse'
221 ),
222
223 'moodle/restore:restoreactivity' => array(
224
225 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
226
227 'captype' => 'write',
228 'contextlevel' => CONTEXT_MODULE,
31c93303 229 'archetypes' => array(
57ca97b3
EL
230 'editingteacher' => CAP_ALLOW,
231 'manager' => CAP_ALLOW
232 ),
233
234 'clonepermissionsfrom' => 'moodle/restore:restorecourse'
235 ),
236
237 'moodle/restore:restoretargethub' => array(
238
239 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
240
241 'captype' => 'write',
242 'contextlevel' => CONTEXT_COURSE,
31c93303 243 'archetypes' => array(
57ca97b3
EL
244 'editingteacher' => CAP_ALLOW,
245 'manager' => CAP_ALLOW
246 ),
247
248 'clonepermissionsfrom' => 'moodle/restore:restorecourse'
249 ),
250
157aa3a2 251 'moodle/restore:restoretargetimport' => array(
eef868d1 252
21b6db6e 253 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
254
bbbf2d40 255 'captype' => 'write',
f432bebf 256 'contextlevel' => CONTEXT_COURSE,
31c93303 257 'archetypes' => array(
7246585a 258 'editingteacher' => CAP_ALLOW,
4f0c2d00 259 'manager' => CAP_ALLOW
d2940003
EL
260 ),
261
157aa3a2 262 'clonepermissionsfrom' => 'moodle/site:import'
bbbf2d40 263 ),
eef868d1 264
157aa3a2 265 'moodle/restore:uploadfile' => array(
5e934890 266
157aa3a2 267 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
5e934890
EL
268
269 'captype' => 'write',
157aa3a2 270 'contextlevel' => CONTEXT_COURSE,
31c93303 271 'archetypes' => array(
157aa3a2 272 'editingteacher' => CAP_ALLOW,
4f0c2d00 273 'manager' => CAP_ALLOW
157aa3a2
EL
274 ),
275
276 'clonepermissionsfrom' => 'moodle/site:backupupload'
5e934890
EL
277 ),
278
57ca97b3 279 'moodle/restore:configure' => array(
f6459d12 280
57ca97b3 281 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
f6459d12
EL
282
283 'captype' => 'write',
284 'contextlevel' => CONTEXT_COURSE,
31c93303 285 'archetypes' => array(
57ca97b3 286 'editingteacher' => CAP_ALLOW,
4f0c2d00 287 'manager' => CAP_ALLOW
f6459d12
EL
288 )
289 ),
290
57ca97b3 291 'moodle/restore:rolldates' => array(
157aa3a2
EL
292
293 'captype' => 'write',
57ca97b3 294 'contextlevel' => CONTEXT_COURSE,
31c93303 295 'archetypes' => array(
57ca97b3 296 'coursecreator' => CAP_ALLOW,
4f0c2d00 297 'manager' => CAP_ALLOW
157aa3a2
EL
298 )
299 ),
300
57ca97b3
EL
301 'moodle/restore:userinfo' => array(
302
303 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
982e45af 304
305 'captype' => 'write',
306 'contextlevel' => CONTEXT_COURSE,
31c93303 307 'archetypes' => array(
57ca97b3
EL
308 'manager' => CAP_ALLOW
309 )
310 ),
311
312 'moodle/restore:createuser' => array(
313
314 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
315
316 'captype' => 'write',
317 'contextlevel' => CONTEXT_SYSTEM,
31c93303 318 'archetypes' => array(
4f0c2d00 319 'manager' => CAP_ALLOW
982e45af 320 )
321 ),
322
bbbf2d40 323 'moodle/site:manageblocks' => array(
eef868d1 324
21b6db6e 325 'riskbitmask' => RISK_SPAM | RISK_XSS,
326
bbbf2d40 327 'captype' => 'write',
f432bebf 328 'contextlevel' => CONTEXT_BLOCK,
31c93303 329 'archetypes' => array(
73b73d21 330 'editingteacher' => CAP_ALLOW,
4f0c2d00 331 'manager' => CAP_ALLOW
bbbf2d40 332 )
333 ),
eef868d1 334
27950688 335 'moodle/site:accessallgroups' => array(
eef868d1 336
27950688 337 'captype' => 'read',
f432bebf 338 'contextlevel' => CONTEXT_COURSE,
31c93303 339 'archetypes' => array(
27950688 340 'teacher' => CAP_ALLOW,
341 'editingteacher' => CAP_ALLOW,
4f0c2d00 342 'manager' => CAP_ALLOW
27950688 343 )
344 ),
eef868d1 345
53d7785b 346 'moodle/site:viewfullnames' => array(
eef868d1 347
53d7785b 348 'captype' => 'read',
f432bebf 349 'contextlevel' => CONTEXT_COURSE,
31c93303 350 'archetypes' => array(
53d7785b 351 'teacher' => CAP_ALLOW,
352 'editingteacher' => CAP_ALLOW,
4f0c2d00 353 'manager' => CAP_ALLOW
53d7785b 354 )
355 ),
eef868d1 356
a028c291 357 'moodle/site:viewreports' => array(
eef868d1 358
21b6db6e 359 'riskbitmask' => RISK_PERSONAL,
360
a028c291 361 'captype' => 'read',
f432bebf 362 'contextlevel' => CONTEXT_COURSE,
31c93303 363 'archetypes' => array(
a028c291 364 'teacher' => CAP_ALLOW,
365 'editingteacher' => CAP_ALLOW,
4f0c2d00 366 'manager' => CAP_ALLOW
a028c291 367 )
368 ),
eef868d1 369
7d8a3cb0 370 'moodle/site:trustcontent' => array(
eef868d1 371
21b6db6e 372 'riskbitmask' => RISK_XSS,
373
7d8a3cb0 374 'captype' => 'write',
f432bebf 375 'contextlevel' => CONTEXT_COURSE,
31c93303 376 'archetypes' => array(
7d8a3cb0 377 'editingteacher' => CAP_ALLOW,
4f0c2d00 378 'manager' => CAP_ALLOW
7d8a3cb0 379 )
380 ),
eef868d1 381
6df3c7df 382 'moodle/site:uploadusers' => array(
eef868d1 383
21b6db6e 384 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
385
bbbf2d40 386 'captype' => 'write',
387 'contextlevel' => CONTEXT_SYSTEM,
31c93303 388 'archetypes' => array(
4f0c2d00 389 'manager' => CAP_ALLOW
bbbf2d40 390 )
391 ),
eef868d1 392
2a55410b 393 'moodle/site:langeditmaster' => array(
394
395 'riskbitmask' => RISK_CONFIG | RISK_XSS,
396
397 'captype' => 'write',
398 'contextlevel' => CONTEXT_SYSTEM,
31c93303 399 'archetypes' => array(
2a55410b 400 )
401 ),
402
403 'moodle/site:langeditlocal' => array(
404
405 'riskbitmask' => RISK_CONFIG | RISK_XSS,
406
407 'captype' => 'write',
408 'contextlevel' => CONTEXT_SYSTEM,
31c93303 409 'archetypes' => array(
4f0c2d00 410 'manager' => CAP_ALLOW
2a55410b 411 )
412 ),
413
94211250 414 // Permission to manage filter setting overrides in subcontexts.
415 'moodle/filter:manage' => array(
416
417 'captype' => 'write',
418 'contextlevel' => CONTEXT_COURSE,
31c93303 419 'archetypes' => array(
94211250 420 'editingteacher' => CAP_ALLOW,
421 'coursecreator' => CAP_ALLOW,
4f0c2d00 422 'manager' => CAP_ALLOW,
94211250 423 )
424 ),
6df3c7df 425
426 'moodle/user:create' => array(
427
428 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
eef868d1 429
bbbf2d40 430 'captype' => 'write',
431 'contextlevel' => CONTEXT_SYSTEM,
31c93303 432 'archetypes' => array(
4f0c2d00 433 'manager' => CAP_ALLOW
bbbf2d40 434 )
435 ),
eef868d1 436
6df3c7df 437 'moodle/user:delete' => array(
cc891abe 438
3a0c6cca 439 'riskbitmask' => RISK_PERSONAL, RISK_DATALOSS,
bcdb0f19 440
cc891abe 441 'captype' => 'write',
442 'contextlevel' => CONTEXT_SYSTEM,
31c93303 443 'archetypes' => array(
4f0c2d00 444 'manager' => CAP_ALLOW
cc891abe 445 )
446 ),
447
6df3c7df 448 'moodle/user:update' => array(
cc891abe 449
450 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
21b6db6e 451
bbbf2d40 452 'captype' => 'write',
453 'contextlevel' => CONTEXT_SYSTEM,
31c93303 454 'archetypes' => array(
4f0c2d00 455 'manager' => CAP_ALLOW
bbbf2d40 456 )
457 ),
eef868d1 458
bbbf2d40 459 'moodle/user:viewdetails' => array(
eef868d1 460
e58eca72 461 'captype' => 'read',
f432bebf 462 'contextlevel' => CONTEXT_COURSE,
31c93303 463 'archetypes' => array(
22ae509e 464 'guest' => CAP_ALLOW,
465 'student' => CAP_ALLOW,
466 'teacher' => CAP_ALLOW,
467 'editingteacher' => CAP_ALLOW,
4f0c2d00 468 'manager' => CAP_ALLOW
bbbf2d40 469 )
470 ),
e58eca72 471
472 'moodle/user:viewhiddendetails' => array(
eef868d1 473
21b6db6e 474 'riskbitmask' => RISK_PERSONAL,
475
e58eca72 476 'captype' => 'read',
f432bebf 477 'contextlevel' => CONTEXT_COURSE,
31c93303 478 'archetypes' => array(
e58eca72 479 'teacher' => CAP_ALLOW,
480 'editingteacher' => CAP_ALLOW,
4f0c2d00 481 'manager' => CAP_ALLOW
e58eca72 482 )
483 ),
eef868d1 484
6c95827f 485 'moodle/user:loginas' => array(
486
487 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
488
489 'captype' => 'write',
490 'contextlevel' => CONTEXT_COURSE,
31c93303 491 'archetypes' => array(
4f0c2d00 492 'manager' => CAP_ALLOW
6c95827f 493 )
494 ),
495
03d9401e
MD
496 // can the user manage the system default profile page?
497 'moodle/user:managesyspages' => array(
498
499 'riskbitmap' => RISK_SPAM | RISK_PERSONAL | RISK_CONFIG,
500
501 'captype' => 'write',
502 'contextlevel' => CONTEXT_SYSTEM,
31c93303 503 'archetypes' => array(
03d9401e
MD
504 'manager' => CAP_ALLOW
505 )
506 ),
507
508 // can the user manage another user's profile page?
509 'moodle/user:manageblocks' => array(
510
511 'riskbitmap' => RISK_SPAM | RISK_PERSONAL,
512
513 'captype' => 'write',
514 'contextlevel' => CONTEXT_USER
515 ),
516
517 // can the user manage their own profile page?
518 'moodle/user:manageownblocks' => array(
519
520 'riskbitmap' => RISK_SPAM | RISK_PERSONAL,
521
522 'captype' => 'write',
523 'contextlevel' => CONTEXT_SYSTEM,
31c93303 524 'archetypes' => array(
e4f413b4
MD
525 'user' => CAP_ALLOW
526 )
527 ),
528
529 // can the user manage their own files?
530 'moodle/user:manageownfiles' => array(
531
532 'riskbitmap' => RISK_SPAM | RISK_PERSONAL,
533
534 'captype' => 'write',
535 'contextlevel' => CONTEXT_SYSTEM,
536 'archetypes' => array(
537 'user' => CAP_ALLOW
03d9401e
MD
538 )
539 ),
540
541 // can the user manage the system default dashboard page?
542 'moodle/my:configsyspages' => array(
543
544 'riskbitmap' => RISK_SPAM | RISK_PERSONAL | RISK_CONFIG,
545
546 'captype' => 'write',
547 'contextlevel' => CONTEXT_SYSTEM,
31c93303 548 'archetypes' => array(
03d9401e
MD
549 'manager' => CAP_ALLOW
550 )
551 ),
552
bbbf2d40 553 'moodle/role:assign' => array(
eef868d1 554
3a0c6cca 555 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
556
bbbf2d40 557 'captype' => 'write',
f432bebf 558 'contextlevel' => CONTEXT_COURSE,
31c93303 559 'archetypes' => array(
861fdcaa 560 'editingteacher' => CAP_ALLOW,
4f0c2d00 561 'manager' => CAP_ALLOW
68c52526 562 )
563 ),
eef868d1 564
01a2ce80
PS
565 'moodle/role:review' => array(
566
567 'riskbitmask' => RISK_PERSONAL,
568
569 'captype' => 'read',
570 'contextlevel' => CONTEXT_COURSE,
31c93303 571 'archetypes' => array(
01a2ce80
PS
572 'teacher' => CAP_ALLOW,
573 'editingteacher' => CAP_ALLOW,
4f0c2d00 574 'manager' => CAP_ALLOW
01a2ce80
PS
575 )
576 ),
577
68c52526 578 'moodle/role:override' => array(
eef868d1 579
bcdb0f19 580 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
581
68c52526 582 'captype' => 'write',
f432bebf 583 'contextlevel' => CONTEXT_COURSE,
31c93303 584 'archetypes' => array(
4f0c2d00 585 'manager' => CAP_ALLOW
bbbf2d40 586 )
587 ),
eef868d1 588
3a0c6cca 589 'moodle/role:safeoverride' => array(
590
591 'riskbitmask' => RISK_SPAM,
592
593 'captype' => 'write',
f432bebf 594 'contextlevel' => CONTEXT_COURSE,
31c93303 595 'archetypes' => array(
3a0c6cca 596 'editingteacher' => CAP_ALLOW
597 )
598 ),
599
bbbf2d40 600 'moodle/role:manage' => array(
eef868d1 601
bcdb0f19 602 'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
603
bbbf2d40 604 'captype' => 'write',
605 'contextlevel' => CONTEXT_SYSTEM,
31c93303 606 'archetypes' => array(
4f0c2d00 607 'manager' => CAP_ALLOW
bbbf2d40 608 )
609 ),
f43ce1ad 610
20dd4cf5 611 'moodle/role:switchroles' => array(
bcdb0f19 612
3a0c6cca 613 'riskbitmask' => RISK_XSS | RISK_PERSONAL,
bcdb0f19 614
20dd4cf5 615 'captype' => 'read',
f432bebf 616 'contextlevel' => CONTEXT_COURSE,
31c93303 617 'archetypes' => array(
20dd4cf5 618 'editingteacher' => CAP_ALLOW,
4f0c2d00 619 'manager' => CAP_ALLOW
20dd4cf5 620 )
621 ),
622
8ed5dd63 623 // Create, update and delete course categories. (Deleting a course category
624 // does not let you delete the courses it contains, unless you also have
625 // moodle/course: delete.) Creating and deleting requires this permission in
626 // the parent category.
627 'moodle/category:manage' => array(
eef868d1 628
89a792ab 629 'riskbitmask' => RISK_XSS,
630
bbbf2d40 631 'captype' => 'write',
632 'contextlevel' => CONTEXT_COURSECAT,
31c93303 633 'archetypes' => array(
4f0c2d00 634 'manager' => CAP_ALLOW
8ed5dd63 635 ),
636 'clonepermissionsfrom' => 'moodle/category:update'
bbbf2d40 637 ),
eef868d1 638
8ed5dd63 639 'moodle/category:viewhiddencategories' => array(
eef868d1 640
8ed5dd63 641 'captype' => 'read',
bbbf2d40 642 'contextlevel' => CONTEXT_COURSECAT,
31c93303 643 'archetypes' => array(
8ed5dd63 644 'coursecreator' => CAP_ALLOW,
4f0c2d00 645 'manager' => CAP_ALLOW
8ed5dd63 646 ),
647 'clonepermissionsfrom' => 'moodle/category:visibility'
bbbf2d40 648 ),
eef868d1 649
3f791403
PS
650 // create, delete, move cohorts in system and course categories,
651 // (cohorts with component !== null can be only moved)
652 'moodle/cohort:manage' => array(
653
654 'captype' => 'write',
655 'contextlevel' => CONTEXT_COURSECAT,
31c93303 656 'archetypes' => array(
3f791403
PS
657 'manager' => CAP_ALLOW
658 )
659 ),
660
661 // add and remove cohort members (only for cohorts where component !== null)
662 'moodle/cohort:assign' => array(
663
664 'captype' => 'write',
665 'contextlevel' => CONTEXT_COURSECAT,
31c93303 666 'archetypes' => array(
3f791403
PS
667 'manager' => CAP_ALLOW
668 )
669 ),
670
671 // view members of a cohort, this can be used in course context too,
672 // this also controls the ability to actually use cohort
673 'moodle/cohort:view' => array(
674
675 'captype' => 'read',
676 'contextlevel' => CONTEXT_COURSE,
31c93303 677 'archetypes' => array(
3f791403
PS
678 'editingteacher' => CAP_ALLOW,
679 'manager' => CAP_ALLOW
680 )
681 ),
682
bbbf2d40 683 'moodle/course:create' => array(
eef868d1 684
21b6db6e 685 'riskbitmask' => RISK_XSS,
686
bbbf2d40 687 'captype' => 'write',
5e992f56 688 'contextlevel' => CONTEXT_COURSECAT,
31c93303 689 'archetypes' => array(
4473252d 690 'coursecreator' => CAP_ALLOW,
4f0c2d00 691 'manager' => CAP_ALLOW
bbbf2d40 692 )
693 ),
eef868d1 694
e452210a 695 'moodle/course:request' => array(
696 'captype' => 'write',
697 'contextlevel' => CONTEXT_SYSTEM,
31c93303 698 'archetypes' => array(
e452210a 699 'user' => CAP_ALLOW,
700 )
701 ),
702
bbbf2d40 703 'moodle/course:delete' => array(
eef868d1 704
3a0c6cca 705 'riskbitmask' => RISK_DATALOSS,
706
bbbf2d40 707 'captype' => 'write',
708 'contextlevel' => CONTEXT_COURSE,
31c93303 709 'archetypes' => array(
9136a60c 710 'editingteacher' => CAP_ALLOW,
4f0c2d00 711 'manager' => CAP_ALLOW
bbbf2d40 712 )
713 ),
eef868d1 714
bbbf2d40 715 'moodle/course:update' => array(
eef868d1 716
21b6db6e 717 'riskbitmask' => RISK_XSS,
718
bbbf2d40 719 'captype' => 'write',
720 'contextlevel' => CONTEXT_COURSE,
31c93303 721 'archetypes' => array(
bbbf2d40 722 'editingteacher' => CAP_ALLOW,
4f0c2d00 723 'manager' => CAP_ALLOW
bbbf2d40 724 )
725 ),
eef868d1 726
df997f84 727 'moodle/course:view' => array(
eef868d1 728
bbbf2d40 729 'captype' => 'read',
730 'contextlevel' => CONTEXT_COURSE,
31c93303 731 'archetypes' => array(
df997f84 732 'manager' => CAP_ALLOW,
bbbf2d40 733 )
734 ),
eef868d1 735
df997f84
PS
736 /* review course enrolments - no group restrictions, it is really full access to all participants info*/
737 'moodle/course:enrolreview' => array(
738
739 'riskbitmask' => RISK_PERSONAL,
4f0c2d00
PS
740
741 'captype' => 'read',
742 'contextlevel' => CONTEXT_COURSE,
31c93303 743 'archetypes' => array(
df997f84
PS
744 'editingteacher' => CAP_ALLOW,
745 'manager' => CAP_ALLOW,
746 )
747 ),
748
749 /* add, remove, hide enrol instances in courses */
750 'moodle/course:enrolconfig' => array(
751
752 'riskbitmask' => RISK_PERSONAL,
753
754 'captype' => 'write',
755 'contextlevel' => CONTEXT_COURSE,
756 'archetypes' => array(
757 'editingteacher' => CAP_ALLOW,
4f0c2d00
PS
758 'manager' => CAP_ALLOW,
759 )
760 ),
761
77c645df 762 'moodle/course:bulkmessaging' => array(
763
764 'riskbitmask' => RISK_SPAM,
765
766 'captype' => 'write',
767 'contextlevel' => CONTEXT_COURSE,
31c93303 768 'archetypes' => array(
77c645df 769 'teacher' => CAP_ALLOW,
770 'editingteacher' => CAP_ALLOW,
4f0c2d00 771 'manager' => CAP_ALLOW
77c645df 772 )
773 ),
774
1c45e42e 775 'moodle/course:viewhiddenuserfields' => array(
eef868d1 776
21b6db6e 777 'riskbitmask' => RISK_PERSONAL,
4e781c7b 778
779 'captype' => 'read',
780 'contextlevel' => CONTEXT_COURSE,
31c93303 781 'archetypes' => array(
4e781c7b 782 'teacher' => CAP_ALLOW,
783 'editingteacher' => CAP_ALLOW,
4f0c2d00 784 'manager' => CAP_ALLOW
4e781c7b 785 )
786 ),
787
1c45e42e 788 'moodle/course:viewhiddencourses' => array(
eef868d1 789
1c45e42e 790 'captype' => 'read',
791 'contextlevel' => CONTEXT_COURSE,
31c93303 792 'archetypes' => array(
2f5ab42b 793 'coursecreator' => CAP_ALLOW,
794 'teacher' => CAP_ALLOW,
795 'editingteacher' => CAP_ALLOW,
4f0c2d00 796 'manager' => CAP_ALLOW
1c45e42e 797 )
798 ),
eef868d1 799
bbbf2d40 800 'moodle/course:visibility' => array(
eef868d1 801
bbbf2d40 802 'captype' => 'write',
803 'contextlevel' => CONTEXT_COURSE,
31c93303 804 'archetypes' => array(
df997f84 805 'editingteacher' => CAP_ALLOW,
4f0c2d00 806 'manager' => CAP_ALLOW
bbbf2d40 807 )
808 ),
eef868d1 809
a028c291 810 'moodle/course:managefiles' => array(
eef868d1 811
21b6db6e 812 'riskbitmask' => RISK_XSS,
813
a028c291 814 'captype' => 'write',
815 'contextlevel' => CONTEXT_COURSE,
31c93303 816 'archetypes' => array(
a028c291 817 'editingteacher' => CAP_ALLOW,
4f0c2d00 818 'manager' => CAP_ALLOW
a028c291 819 )
820 ),
eef868d1 821
bbbf2d40 822 'moodle/course:manageactivities' => array(
eef868d1 823
21b6db6e 824 'riskbitmask' => RISK_XSS,
825
bbbf2d40 826 'captype' => 'write',
827 'contextlevel' => CONTEXT_COURSE,
31c93303 828 'archetypes' => array(
bbbf2d40 829 'editingteacher' => CAP_ALLOW,
4f0c2d00 830 'manager' => CAP_ALLOW
bbbf2d40 831 )
832 ),
eef868d1 833
bbbf2d40 834 'moodle/course:activityvisibility' => array(
eef868d1 835
bbbf2d40 836 'captype' => 'write',
837 'contextlevel' => CONTEXT_COURSE,
31c93303 838 'archetypes' => array(
bbbf2d40 839 'editingteacher' => CAP_ALLOW,
4f0c2d00 840 'manager' => CAP_ALLOW
bbbf2d40 841 )
842 ),
eef868d1 843
bbbf2d40 844 'moodle/course:viewhiddenactivities' => array(
eef868d1 845
bbbf2d40 846 'captype' => 'write',
847 'contextlevel' => CONTEXT_COURSE,
31c93303 848 'archetypes' => array(
bbbf2d40 849 'teacher' => CAP_ALLOW,
850 'editingteacher' => CAP_ALLOW,
4f0c2d00 851 'manager' => CAP_ALLOW
bbbf2d40 852 )
853 ),
eef868d1 854
bbbf2d40 855 'moodle/course:viewparticipants' => array(
eef868d1 856
bbbf2d40 857 'captype' => 'read',
858 'contextlevel' => CONTEXT_COURSE,
31c93303 859 'archetypes' => array(
bbbf2d40 860 'student' => CAP_ALLOW,
861 'teacher' => CAP_ALLOW,
862 'editingteacher' => CAP_ALLOW,
4f0c2d00 863 'manager' => CAP_ALLOW
165088f6 864 )
865 ),
f7c0d84b 866
867 'moodle/course:changefullname' => array(
868
cd7f72c0 869 'riskbitmask' => RISK_XSS,
870
f7c0d84b 871 'captype' => 'write',
872 'contextlevel' => CONTEXT_COURSE,
31c93303 873 'archetypes' => array(
f7c0d84b 874 'editingteacher' => CAP_ALLOW,
4f0c2d00 875 'manager' => CAP_ALLOW
5e99b9d7 876 ),
877 'clonepermissionsfrom' => 'moodle/course:update'
f7c0d84b 878 ),
879
880 'moodle/course:changeshortname' => array(
881
cd7f72c0 882 'riskbitmask' => RISK_XSS,
883
f7c0d84b 884 'captype' => 'write',
885 'contextlevel' => CONTEXT_COURSE,
31c93303 886 'archetypes' => array(
f7c0d84b 887 'editingteacher' => CAP_ALLOW,
4f0c2d00 888 'manager' => CAP_ALLOW
5e99b9d7 889 ),
890 'clonepermissionsfrom' => 'moodle/course:update'
f7c0d84b 891 ),
892
893 'moodle/course:changeidnumber' => array(
894
cd7f72c0 895 'riskbitmask' => RISK_XSS,
896
f7c0d84b 897 'captype' => 'write',
898 'contextlevel' => CONTEXT_COURSE,
31c93303 899 'archetypes' => array(
f7c0d84b 900 'editingteacher' => CAP_ALLOW,
4f0c2d00 901 'manager' => CAP_ALLOW
5e99b9d7 902 ),
903 'clonepermissionsfrom' => 'moodle/course:update'
f7c0d84b 904 ),
50569ba3 905 'moodle/course:changecategory' => array(
906 'riskbitmask' => RISK_XSS,
907
908 'captype' => 'write',
909 'contextlevel' => CONTEXT_COURSE,
31c93303 910 'archetypes' => array(
50569ba3 911 'editingteacher' => CAP_ALLOW,
4f0c2d00 912 'manager' => CAP_ALLOW
50569ba3 913 ),
914 'clonepermissionsfrom' => 'moodle/course:update'
915 ),
916
917 'moodle/course:changesummary' => array(
918 'riskbitmask' => RISK_XSS,
919
920 'captype' => 'write',
921 'contextlevel' => CONTEXT_COURSE,
31c93303 922 'archetypes' => array(
50569ba3 923 'editingteacher' => CAP_ALLOW,
4f0c2d00 924 'manager' => CAP_ALLOW
50569ba3 925 ),
926 'clonepermissionsfrom' => 'moodle/course:update'
927 ),
928
f7c0d84b 929
165088f6 930 'moodle/site:viewparticipants' => array(
931
932 'captype' => 'read',
933 'contextlevel' => CONTEXT_SYSTEM,
31c93303 934 'archetypes' => array(
4f0c2d00 935 'manager' => CAP_ALLOW
bbbf2d40 936 )
937 ),
eef868d1 938
bbbf2d40 939 'moodle/course:viewscales' => array(
eef868d1 940
bbbf2d40 941 'captype' => 'read',
942 'contextlevel' => CONTEXT_COURSE,
31c93303 943 'archetypes' => array(
bbbf2d40 944 'student' => CAP_ALLOW,
945 'teacher' => CAP_ALLOW,
946 'editingteacher' => CAP_ALLOW,
4f0c2d00 947 'manager' => CAP_ALLOW
bbbf2d40 948 )
949 ),
eef868d1 950
bbbf2d40 951 'moodle/course:managescales' => array(
eef868d1 952
bbbf2d40 953 'captype' => 'write',
954 'contextlevel' => CONTEXT_COURSE,
31c93303 955 'archetypes' => array(
bbbf2d40 956 'editingteacher' => CAP_ALLOW,
4f0c2d00 957 'manager' => CAP_ALLOW
bbbf2d40 958 )
959 ),
eef868d1 960
bbbf2d40 961 'moodle/course:managegroups' => array(
962
963 'captype' => 'write',
964 'contextlevel' => CONTEXT_COURSE,
31c93303 965 'archetypes' => array(
a028c291 966 'editingteacher' => CAP_ALLOW,
4f0c2d00 967 'manager' => CAP_ALLOW
a028c291 968 )
969 ),
eef868d1 970
a028c291 971 'moodle/course:reset' => array(
972
3a0c6cca 973 'riskbitmask' => RISK_DATALOSS,
974
a028c291 975 'captype' => 'write',
976 'contextlevel' => CONTEXT_COURSE,
31c93303 977 'archetypes' => array(
bbbf2d40 978 'editingteacher' => CAP_ALLOW,
4f0c2d00 979 'manager' => CAP_ALLOW
bbbf2d40 980 )
981 ),
eef868d1 982
bbbf2d40 983 'moodle/blog:view' => array(
984
985 'captype' => 'read',
05de723b 986 'contextlevel' => CONTEXT_SYSTEM,
31c93303 987 'archetypes' => array(
05de723b
NC
988 'guest' => CAP_ALLOW,
989 'user' => CAP_ALLOW,
990 'student' => CAP_ALLOW,
991 'teacher' => CAP_ALLOW,
992 'editingteacher' => CAP_ALLOW,
4f0c2d00 993 'manager' => CAP_ALLOW
05de723b
NC
994 )
995 ),
996
997 'moodle/blog:search' => array(
998 'captype' => 'read',
999 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1000 'archetypes' => array(
00adf177 1001 'guest' => CAP_ALLOW,
c785d40a 1002 'user' => CAP_ALLOW,
bbbf2d40 1003 'student' => CAP_ALLOW,
1004 'teacher' => CAP_ALLOW,
1005 'editingteacher' => CAP_ALLOW,
4f0c2d00 1006 'manager' => CAP_ALLOW
bbbf2d40 1007 )
1008 ),
eef868d1 1009
05de723b
NC
1010 'moodle/blog:viewdrafts' => array(
1011
1012 'riskbitmask' => RISK_PERSONAL,
1013 'captype' => 'read',
1014 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1015 'archetypes' => array(
4f0c2d00 1016 'manager' => CAP_ALLOW
05de723b
NC
1017 )
1018 ),
1019
5a8ab2e9 1020 'moodle/blog:create' => array( // works in CONTEXT_SYSTEM only
bbbf2d40 1021
21b6db6e 1022 'riskbitmask' => RISK_SPAM,
1023
bbbf2d40 1024 'captype' => 'write',
1025 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1026 'archetypes' => array(
c785d40a 1027 'user' => CAP_ALLOW,
4f0c2d00 1028 'manager' => CAP_ALLOW
bbbf2d40 1029 )
1030 ),
eef868d1 1031
bbbf2d40 1032 'moodle/blog:manageentries' => array(
1033
21b6db6e 1034 'riskbitmask' => RISK_SPAM,
1035
bbbf2d40 1036 'captype' => 'write',
05de723b 1037 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1038 'archetypes' => array(
bbbf2d40 1039 'teacher' => CAP_ALLOW,
1040 'editingteacher' => CAP_ALLOW,
4f0c2d00 1041 'manager' => CAP_ALLOW
bbbf2d40 1042 )
1043 ),
05de723b 1044
cae83708 1045 'moodle/blog:manageexternal' => array(
1046
1047 'riskbitmask' => RISK_SPAM,
1048
1049 'captype' => 'write',
1050 'contextlevel' => CONTEXT_USER,
31c93303 1051 'archetypes' => array(
cae83708 1052 'student' => CAP_ALLOW,
1053 'user' => CAP_ALLOW,
1054 'teacher' => CAP_ALLOW,
1055 'editingteacher' => CAP_ALLOW,
4f0c2d00 1056 'manager' => CAP_ALLOW
cae83708 1057 )
1058 ),
1059
05de723b
NC
1060 'moodle/blog:associatecourse' => array(
1061
1062 'captype' => 'write',
1063 'contextlevel' => CONTEXT_COURSE,
31c93303 1064 'archetypes' => array(
05de723b
NC
1065 'student' => CAP_ALLOW,
1066 'user' => CAP_ALLOW,
1067 'teacher' => CAP_ALLOW,
1068 'editingteacher' => CAP_ALLOW,
4f0c2d00 1069 'manager' => CAP_ALLOW
05de723b
NC
1070 )
1071 ),
1072
1073 'moodle/blog:associatemodule' => array(
1074
1075 'captype' => 'write',
1076 'contextlevel' => CONTEXT_MODULE,
31c93303 1077 'archetypes' => array(
05de723b
NC
1078 'student' => CAP_ALLOW,
1079 'user' => CAP_ALLOW,
1080 'teacher' => CAP_ALLOW,
1081 'editingteacher' => CAP_ALLOW,
4f0c2d00 1082 'manager' => CAP_ALLOW
05de723b
NC
1083 )
1084 ),
eef868d1 1085
5a8ab2e9 1086 'moodle/calendar:manageownentries' => array( // works in CONTEXT_SYSTEM only
bbbf2d40 1087
21b6db6e 1088 'riskbitmask' => RISK_SPAM,
1089
bbbf2d40 1090 'captype' => 'write',
f432bebf 1091 'contextlevel' => CONTEXT_COURSE,
31c93303 1092 'archetypes' => array(
c785d40a 1093 'user' => CAP_ALLOW,
4f0c2d00 1094 'manager' => CAP_ALLOW
bbbf2d40 1095 )
1096 ),
eef868d1 1097
f63d2922 1098 'moodle/calendar:managegroupentries' => array(
1099
1100 'riskbitmask' => RISK_SPAM,
1101
1102 'captype' => 'write',
f432bebf 1103 'contextlevel' => CONTEXT_COURSE,
31c93303 1104 'archetypes' => array(
f63d2922 1105 'teacher' => CAP_ALLOW,
1106 'editingteacher' => CAP_ALLOW,
4f0c2d00 1107 'manager' => CAP_ALLOW
f63d2922 1108 )
1109 ),
1110
bbbf2d40 1111 'moodle/calendar:manageentries' => array(
1112
21b6db6e 1113 'riskbitmask' => RISK_SPAM,
1114
bbbf2d40 1115 'captype' => 'write',
f432bebf 1116 'contextlevel' => CONTEXT_COURSE,
31c93303 1117 'archetypes' => array(
bbbf2d40 1118 'teacher' => CAP_ALLOW,
1119 'editingteacher' => CAP_ALLOW,
4f0c2d00 1120 'manager' => CAP_ALLOW
bbbf2d40 1121 )
77d4953e 1122 ),
a044c05d 1123
1124 'moodle/user:editprofile' => array(
1125
3a0c6cca 1126 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
a044c05d 1127
1128 'captype' => 'write',
1129 'contextlevel' => CONTEXT_USER,
31c93303 1130 'archetypes' => array(
4f0c2d00 1131 'manager' => CAP_ALLOW
a044c05d 1132 )
1133 ),
eef868d1 1134
a5b8be62 1135 'moodle/user:editownprofile' => array(
1cb3da36 1136
3a0c6cca 1137 'riskbitmask' => RISK_SPAM,
1138
a5b8be62 1139 'captype' => 'write',
1140 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1141 'archetypes' => array(
1cb3da36 1142 'guest' => CAP_PROHIBIT,
1143 'user' => CAP_ALLOW,
4f0c2d00 1144 'manager' => CAP_ALLOW
a5b8be62 1145 )
1cb3da36 1146 ),
1147
a5b8be62 1148 'moodle/user:changeownpassword' => array(
1cb3da36 1149
a5b8be62 1150 'captype' => 'write',
1151 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1152 'archetypes' => array(
1cb3da36 1153 'guest' => CAP_PROHIBIT,
1154 'user' => CAP_ALLOW,
4f0c2d00 1155 'manager' => CAP_ALLOW
a5b8be62 1156 )
1cb3da36 1157 ),
1158
eef868d1 1159 // The next 3 might make no sense for some roles, e.g teacher, etc.
77d4953e 1160 // since the next level up is site. These are more for the parent role
1161 'moodle/user:readuserposts' => array(
bcdb0f19 1162
77d4953e 1163 'captype' => 'read',
4b10f08b 1164 'contextlevel' => CONTEXT_USER,
31c93303 1165 'archetypes' => array(
77d4953e 1166 'student' => CAP_ALLOW,
1167 'teacher' => CAP_ALLOW,
1168 'editingteacher' => CAP_ALLOW,
4f0c2d00 1169 'manager' => CAP_ALLOW
77d4953e 1170 )
1171 ),
eef868d1 1172
77d4953e 1173 'moodle/user:readuserblogs' => array(
bcdb0f19 1174
77d4953e 1175 'captype' => 'read',
4b10f08b 1176 'contextlevel' => CONTEXT_USER,
31c93303 1177 'archetypes' => array(
77d4953e 1178 'student' => CAP_ALLOW,
1179 'teacher' => CAP_ALLOW,
1180 'editingteacher' => CAP_ALLOW,
4f0c2d00 1181 'manager' => CAP_ALLOW
77d4953e 1182 )
1183 ),
eef868d1 1184
3c7da16d 1185 // designed for parent role - not used in legacy roles
77d4953e 1186 'moodle/user:viewuseractivitiesreport' => array(
3c7da16d 1187 'riskbitmask' => RISK_PERSONAL,
bcdb0f19 1188
77d4953e 1189 'captype' => 'read',
4b10f08b 1190 'contextlevel' => CONTEXT_USER,
31c93303 1191 'archetypes' => array(
77d4953e 1192 )
945f88ca 1193 ),
4e781c7b 1194
3b120e46 1195 //capabilities designed for the new message system configuration
1196 'moodle/user:editmessageprofile' => array(
f7c0d84b 1197
3b120e46 1198 'riskbitmask' => RISK_SPAM,
f7c0d84b 1199
3b120e46 1200 'captype' => 'write',
1201 'contextlevel' => CONTEXT_USER,
31c93303 1202 'archetypes' => array(
4f0c2d00 1203 'manager' => CAP_ALLOW
3b120e46 1204 )
1205 ),
f7c0d84b 1206
1207 'moodle/user:editownmessageprofile' => array(
1208
1209 'captype' => 'write',
1210 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1211 'archetypes' => array(
3b120e46 1212 'guest' => CAP_PROHIBIT,
1213 'user' => CAP_ALLOW,
4f0c2d00 1214 'manager' => CAP_ALLOW
f7c0d84b 1215 )
3b120e46 1216 ),
eef868d1 1217
271e6dec 1218 'moodle/question:managecategory' => array(
14d701d6 1219 'riskbitmask' => RISK_SPAM | RISK_XSS,
945f88ca 1220 'captype' => 'write',
1221 'contextlevel' => CONTEXT_COURSE,
31c93303 1222 'archetypes' => array(
945f88ca 1223 'editingteacher' => CAP_ALLOW,
4f0c2d00 1224 'manager' => CAP_ALLOW
945f88ca 1225 )
a5b8be62 1226 ),
1227
271e6dec 1228 //new in moodle 1.9
1229 'moodle/question:add' => array(
14d701d6 1230 'riskbitmask' => RISK_SPAM | RISK_XSS,
271e6dec 1231 'captype' => 'write',
1232 'contextlevel' => CONTEXT_COURSE,
31c93303 1233 'archetypes' => array(
271e6dec 1234 'editingteacher' => CAP_ALLOW,
4f0c2d00 1235 'manager' => CAP_ALLOW
271e6dec 1236 ),
1237 'clonepermissionsfrom' => 'moodle/question:manage'
945f88ca 1238 ),
271e6dec 1239 'moodle/question:editmine' => array(
14d701d6 1240 'riskbitmask' => RISK_SPAM | RISK_XSS,
271e6dec 1241 'captype' => 'write',
1242 'contextlevel' => CONTEXT_COURSE,
31c93303 1243 'archetypes' => array(
271e6dec 1244 'editingteacher' => CAP_ALLOW,
4f0c2d00 1245 'manager' => CAP_ALLOW
271e6dec 1246 ),
a5b8be62 1247 'clonepermissionsfrom' => 'moodle/question:manage'
271e6dec 1248 ),
1249 'moodle/question:editall' => array(
14d701d6 1250 'riskbitmask' => RISK_SPAM | RISK_XSS,
271e6dec 1251 'captype' => 'write',
1252 'contextlevel' => CONTEXT_COURSE,
31c93303 1253 'archetypes' => array(
271e6dec 1254 'editingteacher' => CAP_ALLOW,
4f0c2d00 1255 'manager' => CAP_ALLOW
271e6dec 1256 ),
a5b8be62 1257 'clonepermissionsfrom' => 'moodle/question:manage'
271e6dec 1258 ),
1259 'moodle/question:viewmine' => array(
945f88ca 1260 'captype' => 'read',
1261 'contextlevel' => CONTEXT_COURSE,
31c93303 1262 'archetypes' => array(
945f88ca 1263 'editingteacher' => CAP_ALLOW,
4f0c2d00 1264 'manager' => CAP_ALLOW
271e6dec 1265 ),
a5b8be62 1266 'clonepermissionsfrom' => 'moodle/question:manage'
945f88ca 1267 ),
271e6dec 1268 'moodle/question:viewall' => array(
1269 'captype' => 'read',
1270 'contextlevel' => CONTEXT_COURSE,
31c93303 1271 'archetypes' => array(
271e6dec 1272 'editingteacher' => CAP_ALLOW,
4f0c2d00 1273 'manager' => CAP_ALLOW
271e6dec 1274 ),
a5b8be62 1275 'clonepermissionsfrom' => 'moodle/question:manage'
271e6dec 1276 ),
1277 'moodle/question:usemine' => array(
1278 'captype' => 'read',
1279 'contextlevel' => CONTEXT_COURSE,
31c93303 1280 'archetypes' => array(
271e6dec 1281 'editingteacher' => CAP_ALLOW,
4f0c2d00 1282 'manager' => CAP_ALLOW
271e6dec 1283 ),
a5b8be62 1284 'clonepermissionsfrom' => 'moodle/question:manage'
271e6dec 1285 ),
1286 'moodle/question:useall' => array(
1287 'captype' => 'read',
1288 'contextlevel' => CONTEXT_COURSE,
31c93303 1289 'archetypes' => array(
271e6dec 1290 'editingteacher' => CAP_ALLOW,
4f0c2d00 1291 'manager' => CAP_ALLOW
271e6dec 1292 ),
a5b8be62 1293 'clonepermissionsfrom' => 'moodle/question:manage'
1294 ),
271e6dec 1295 'moodle/question:movemine' => array(
945f88ca 1296 'captype' => 'write',
1297 'contextlevel' => CONTEXT_COURSE,
31c93303 1298 'archetypes' => array(
945f88ca 1299 'editingteacher' => CAP_ALLOW,
4f0c2d00 1300 'manager' => CAP_ALLOW
271e6dec 1301 ),
a5b8be62 1302 'clonepermissionsfrom' => 'moodle/question:manage'
945f88ca 1303 ),
271e6dec 1304 'moodle/question:moveall' => array(
945f88ca 1305 'captype' => 'write',
1306 'contextlevel' => CONTEXT_COURSE,
31c93303 1307 'archetypes' => array(
945f88ca 1308 'editingteacher' => CAP_ALLOW,
4f0c2d00 1309 'manager' => CAP_ALLOW
271e6dec 1310 ),
a5b8be62 1311 'clonepermissionsfrom' => 'moodle/question:manage'
7191a1fa 1312 ),
271e6dec 1313 //END new in moodle 1.9
a5b8be62 1314
0eb6b04a 1315 // Configure the installed question types.
1316 'moodle/question:config' => array(
0eb6b04a 1317 'riskbitmask' => RISK_CONFIG,
0eb6b04a 1318 'captype' => 'write',
1319 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1320 'archetypes' => array(
4f0c2d00 1321 'manager' => CAP_ALLOW
0eb6b04a 1322 )
1323 ),
1324
62e76c67 1325 // While attempting questions, the ability to flag particular questions for later reference.
1326 'moodle/question:flag' => array(
1327 'captype' => 'write',
1328 'contextlevel' => CONTEXT_COURSE,
31c93303 1329 'archetypes' => array(
62e76c67 1330 'student' => CAP_ALLOW,
1331 'teacher' => CAP_ALLOW,
1332 'editingteacher' => CAP_ALLOW,
1333 'coursecreator' => CAP_ALLOW,
4f0c2d00 1334 'manager' => CAP_ALLOW
62e76c67 1335 )
1336 ),
bcdb0f19 1337
62e76c67 1338 'moodle/site:doclinks' => array(
7191a1fa 1339 'captype' => 'read',
1340 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1341 'archetypes' => array(
7191a1fa 1342 'teacher' => CAP_ALLOW,
1343 'editingteacher' => CAP_ALLOW,
4f0c2d00 1344 'manager' => CAP_ALLOW
7191a1fa 1345 )
3924b988 1346 ),
eef868d1 1347
3924b988 1348 'moodle/course:sectionvisibility' => array(
bcdb0f19 1349
3924b988 1350 'captype' => 'write',
1351 'contextlevel' => CONTEXT_COURSE,
31c93303 1352 'archetypes' => array(
3924b988 1353 'editingteacher' => CAP_ALLOW,
4f0c2d00 1354 'manager' => CAP_ALLOW
3924b988 1355 )
1356 ),
eef868d1 1357
dc558690 1358 'moodle/course:useremail' => array(
bcdb0f19 1359
dc558690 1360 'captype' => 'write',
1361 'contextlevel' => CONTEXT_COURSE,
31c93303 1362 'archetypes' => array(
dc558690 1363 'editingteacher' => CAP_ALLOW,
4f0c2d00 1364 'manager' => CAP_ALLOW
dc558690 1365 )
1366 ),
eef868d1 1367
3924b988 1368 'moodle/course:viewhiddensections' => array(
bcdb0f19 1369
3924b988 1370 'captype' => 'write',
1371 'contextlevel' => CONTEXT_COURSE,
31c93303 1372 'archetypes' => array(
3924b988 1373 'editingteacher' => CAP_ALLOW,
4f0c2d00 1374 'manager' => CAP_ALLOW
3924b988 1375 )
1376 ),
eef868d1 1377
3924b988 1378 'moodle/course:setcurrentsection' => array(
bcdb0f19 1379
3924b988 1380 'captype' => 'write',
1381 'contextlevel' => CONTEXT_COURSE,
31c93303 1382 'archetypes' => array(
3924b988 1383 'editingteacher' => CAP_ALLOW,
4f0c2d00 1384 'manager' => CAP_ALLOW
3924b988 1385 )
1386 ),
eef868d1 1387
dd45888a 1388 'moodle/site:mnetlogintoremote' => array(
bc4c9800 1389
3924b988 1390 'captype' => 'read',
dd45888a 1391 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1392 'archetypes' => array(
3924b988 1393 )
1394 ),
eef868d1 1395
dd45888a 1396 'moodle/grade:viewall' => array(
bcdb0f19 1397 'riskbitmask' => RISK_PERSONAL,
dd45888a 1398 'captype' => 'read',
eecf76df 1399 'contextlevel' => CONTEXT_COURSE, // and CONTEXT_USER
31c93303 1400 'archetypes' => array(
dd45888a 1401 'teacher' => CAP_ALLOW,
3924b988 1402 'editingteacher' => CAP_ALLOW,
4f0c2d00 1403 'manager' => CAP_ALLOW
dd45888a 1404 ),
1405 'clonepermissionsfrom' => 'moodle/course:viewcoursegrades'
f509ce06 1406 ),
f43ce1ad 1407
dd45888a 1408 'moodle/grade:view' => array(
f509ce06 1409 'captype' => 'read',
eecf76df 1410 'contextlevel' => CONTEXT_COURSE,
31c93303 1411 'archetypes' => array(
dd45888a 1412 'student' => CAP_ALLOW
f509ce06 1413 )
ca9ffa18 1414 ),
dd45888a 1415
1416 'moodle/grade:viewhidden' => array(
ca9ffa18 1417 'riskbitmask' => RISK_PERSONAL,
1418 'captype' => 'read',
eecf76df 1419 'contextlevel' => CONTEXT_COURSE,
31c93303 1420 'archetypes' => array(
0371f8e5 1421 'teacher' => CAP_ALLOW,
1422 'editingteacher' => CAP_ALLOW,
4f0c2d00 1423 'manager' => CAP_ALLOW
dd45888a 1424 ),
1425 'clonepermissionsfrom' => 'moodle/course:viewcoursegrades'
ca9ffa18 1426 ),
dd45888a 1427
1428 'moodle/grade:import' => array(
3a0c6cca 1429 'riskbitmask' => RISK_PERSONAL | RISK_XSS,
dd45888a 1430 'captype' => 'write',
ca9ffa18 1431 'contextlevel' => CONTEXT_COURSE,
31c93303 1432 'archetypes' => array(
ca9ffa18 1433 'editingteacher' => CAP_ALLOW,
4f0c2d00 1434 'manager' => CAP_ALLOW
dd45888a 1435 ),
1436 'clonepermissionsfrom' => 'moodle/course:managegrades'
ca9ffa18 1437 ),
dd45888a 1438
1439 'moodle/grade:export' => array(
ca9ffa18 1440 'riskbitmask' => RISK_PERSONAL,
1441 'captype' => 'read',
1442 'contextlevel' => CONTEXT_COURSE,
31c93303 1443 'archetypes' => array(
ca9ffa18 1444 'teacher' => CAP_ALLOW,
1445 'editingteacher' => CAP_ALLOW,
4f0c2d00 1446 'manager' => CAP_ALLOW
dd45888a 1447 ),
1448 'clonepermissionsfrom' => 'moodle/course:managegrades'
ca9ffa18 1449 ),
dd45888a 1450
1451 'moodle/grade:manage' => array(
3a0c6cca 1452 'riskbitmask' => RISK_PERSONAL | RISK_XSS,
dd45888a 1453 'captype' => 'write',
1454 'contextlevel' => CONTEXT_COURSE,
31c93303 1455 'archetypes' => array(
dd45888a 1456 'editingteacher' => CAP_ALLOW,
4f0c2d00 1457 'manager' => CAP_ALLOW
dd45888a 1458 ),
1459 'clonepermissionsfrom' => 'moodle/course:managegrades'
ca9ffa18 1460 ),
dd45888a 1461
a5b8be62 1462 'moodle/grade:edit' => array(
1463 'riskbitmask' => RISK_PERSONAL | RISK_XSS,
04259694 1464 'captype' => 'write',
1465 'contextlevel' => CONTEXT_COURSE,
31c93303 1466 'archetypes' => array(
04259694 1467 'editingteacher' => CAP_ALLOW,
4f0c2d00 1468 'manager' => CAP_ALLOW
04259694 1469 ),
1470 'clonepermissionsfrom' => 'moodle/course:managegrades'
1471 ),
1472
a5b8be62 1473 'moodle/grade:manageoutcomes' => array(
284abb09 1474 'captype' => 'write',
1475 'contextlevel' => CONTEXT_COURSE,
31c93303 1476 'archetypes' => array(
284abb09 1477 'editingteacher' => CAP_ALLOW,
4f0c2d00 1478 'manager' => CAP_ALLOW
284abb09 1479 ),
1480 'clonepermissionsfrom' => 'moodle/course:managegrades'
1481 ),
1482
1483 'moodle/grade:manageletters' => array(
ca9ffa18 1484 'captype' => 'write',
1485 'contextlevel' => CONTEXT_COURSE,
31c93303 1486 'archetypes' => array(
ca9ffa18 1487 'editingteacher' => CAP_ALLOW,
4f0c2d00 1488 'manager' => CAP_ALLOW
a5b8be62 1489 ),
1490 'clonepermissionsfrom' => 'moodle/course:managegrades'
ca9ffa18 1491 ),
dd45888a 1492
a5b8be62 1493 'moodle/grade:hide' => array(
ca9ffa18 1494 'captype' => 'write',
1495 'contextlevel' => CONTEXT_COURSE,
31c93303 1496 'archetypes' => array(
ca9ffa18 1497 'editingteacher' => CAP_ALLOW,
4f0c2d00 1498 'manager' => CAP_ALLOW
ca9ffa18 1499 )
1500 ),
dd45888a 1501
a5b8be62 1502 'moodle/grade:lock' => array(
dd45888a 1503 'captype' => 'write',
ca9ffa18 1504 'contextlevel' => CONTEXT_COURSE,
31c93303 1505 'archetypes' => array(
ca9ffa18 1506 'editingteacher' => CAP_ALLOW,
4f0c2d00 1507 'manager' => CAP_ALLOW
ca9ffa18 1508 )
1509 ),
dd45888a 1510
a5b8be62 1511 'moodle/grade:unlock' => array(
ca9ffa18 1512 'captype' => 'write',
1513 'contextlevel' => CONTEXT_COURSE,
31c93303 1514 'archetypes' => array(
ca9ffa18 1515 'editingteacher' => CAP_ALLOW,
4f0c2d00 1516 'manager' => CAP_ALLOW
ca9ffa18 1517 )
282c1695 1518 ),
dd45888a 1519
1520 'moodle/my:manageblocks' => array(
282c1695 1521 'captype' => 'write',
1522 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1523 'archetypes' => array(
282c1695 1524 'user' => CAP_ALLOW
1525 )
eca3af25 1526 ),
dd45888a 1527
eca3af25 1528 'moodle/notes:view' => array(
1529 'captype' => 'read',
f432bebf 1530 'contextlevel' => CONTEXT_COURSE,
31c93303 1531 'archetypes' => array(
eca3af25 1532 'teacher' => CAP_ALLOW,
1533 'editingteacher' => CAP_ALLOW,
4f0c2d00 1534 'manager' => CAP_ALLOW
eca3af25 1535 )
1536 ),
1537
1538 'moodle/notes:manage' => array(
3a0c6cca 1539 'riskbitmask' => RISK_SPAM,
1540
eca3af25 1541 'captype' => 'write',
f432bebf 1542 'contextlevel' => CONTEXT_COURSE,
31c93303 1543 'archetypes' => array(
eca3af25 1544 'teacher' => CAP_ALLOW,
1545 'editingteacher' => CAP_ALLOW,
4f0c2d00 1546 'manager' => CAP_ALLOW
eca3af25 1547 )
dd45888a 1548 ),
79642064 1549
1550 'moodle/tag:manage' => array(
3a0c6cca 1551 'riskbitmask' => RISK_SPAM,
1552
79642064 1553 'captype' => 'write',
1554 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1555 'archetypes' => array(
79642064 1556 'teacher' => CAP_ALLOW,
1557 'editingteacher' => CAP_ALLOW,
4f0c2d00 1558 'manager' => CAP_ALLOW
79642064 1559 )
705789bd 1560 ),
1561
1562 'moodle/tag:create' => array(
3a0c6cca 1563 'riskbitmask' => RISK_SPAM,
1564
705789bd 1565 'captype' => 'write',
1566 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1567 'archetypes' => array(
4f0c2d00 1568 'manager' => CAP_ALLOW,
0f07c40e 1569 'user' => CAP_ALLOW
705789bd 1570 )
1571 ),
a5b8be62 1572
705789bd 1573 'moodle/tag:edit' => array(
3a0c6cca 1574 'riskbitmask' => RISK_SPAM,
1575
705789bd 1576 'captype' => 'write',
1577 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1578 'archetypes' => array(
4f0c2d00 1579 'manager' => CAP_ALLOW,
3e6e529f 1580 'user' => CAP_ALLOW
98b5789d 1581 )
1582 ),
a5b8be62 1583
98b5789d 1584 'moodle/tag:editblocks' => array(
1585 'captype' => 'write',
1586 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1587 'archetypes' => array(
705789bd 1588 'teacher' => CAP_ALLOW,
1589 'editingteacher' => CAP_ALLOW,
4f0c2d00 1590 'manager' => CAP_ALLOW
705789bd 1591 )
7e874772 1592 ),
1593
1594 'moodle/block:view' => array(
1595 'captype' => 'read',
1596 'contextlevel' => CONTEXT_BLOCK,
31c93303 1597 'archetypes' => array(
7e874772 1598 'guest' => CAP_ALLOW,
25a7d980 1599 'user' => CAP_ALLOW,
1600 'student' => CAP_ALLOW,
1601 'teacher' => CAP_ALLOW,
1602 'editingteacher' => CAP_ALLOW,
1603 'coursecreator' => CAP_ALLOW
7e874772 1604 )
8512f577 1605 ),
1606
d14edf06 1607 'moodle/block:edit' => array(
1608 'riskbitmask' => RISK_SPAM | RISK_XSS,
1609
1610 'captype' => 'write',
1611 'contextlevel' => CONTEXT_BLOCK,
31c93303 1612 'archetypes' => array(
d14edf06 1613 'editingteacher' => CAP_ALLOW,
1614 'coursecreator' => CAP_ALLOW
1615 )
1616 ),
1617
8512f577 1618 'moodle/portfolio:export' => array(
1619 'captype' => 'read',
1620 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1621 'archetypes' => array(
8512f577 1622 'user' => CAP_ALLOW,
1623 'student' => CAP_ALLOW,
1624 'teacher' => CAP_ALLOW,
1625 'editingteacher' => CAP_ALLOW,
1626 'coursecreator' => CAP_ALLOW
1627 )
1bcb7eb5 1628 ),
1629 'moodle/comment:view' => array(
1630
1631 'captype' => 'read',
ad0ae261 1632 'contextlevel' => CONTEXT_COURSE,
31c93303 1633 'archetypes' => array(
1bcb7eb5 1634 'user' => CAP_ALLOW,
1635 'student' => CAP_ALLOW,
1636 'teacher' => CAP_ALLOW,
1637 'editingteacher' => CAP_ALLOW,
1638 'coursecreator' => CAP_ALLOW,
4f0c2d00 1639 'manager' => CAP_ALLOW
1bcb7eb5 1640 )
1641 ),
1642 'moodle/comment:post' => array(
1643
1644 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
1645 'captype' => 'write',
ad0ae261 1646 'contextlevel' => CONTEXT_COURSE,
31c93303 1647 'archetypes' => array(
1bcb7eb5 1648 'user' => CAP_ALLOW,
1649 'student' => CAP_ALLOW,
1650 'teacher' => CAP_ALLOW,
1651 'editingteacher' => CAP_ALLOW,
1652 'coursecreator' => CAP_ALLOW,
4f0c2d00 1653 'manager' => CAP_ALLOW
1bcb7eb5 1654 )
1655 ),
1656 'moodle/comment:delete' => array(
1657
1658 'riskbitmask' => RISK_DATALOSS,
1659 'captype' => 'write',
ad0ae261 1660 'contextlevel' => CONTEXT_COURSE,
31c93303 1661 'archetypes' => array(
1bcb7eb5 1662 'editingteacher' => CAP_ALLOW,
1663 'coursecreator' => CAP_ALLOW,
4f0c2d00 1664 'manager' => CAP_ALLOW
1bcb7eb5 1665 )
5eacbd4b 1666 ),
1667 'moodle/webservice:createtoken' => array(
1668
52dd27bf 1669 'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
5eacbd4b 1670 'captype' => 'write',
1671 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1672 'archetypes' => array(
4f0c2d00 1673 'manager' => CAP_ALLOW
5eacbd4b 1674 )
a09aeee4 1675 ),
19fae119 1676 'moodle/rating:view' => array(
ad0ae261 1677
a09aeee4 1678 'captype' => 'read',
ad0ae261 1679 'contextlevel' => CONTEXT_COURSE,
31c93303 1680 'archetypes' => array(
ad0ae261 1681 'user' => CAP_ALLOW,
e116a818
AD
1682 'student' => CAP_ALLOW,
1683 'teacher' => CAP_ALLOW,
1684 'editingteacher' => CAP_ALLOW,
4f0c2d00 1685 'manager' => CAP_ALLOW
a09aeee4
AD
1686 )
1687 ),
6595a568 1688 'moodle/rating:viewany' => array(
ad0ae261 1689
6595a568
MD
1690 'riskbitmask' => RISK_PERSONAL,
1691 'captype' => 'read',
ad0ae261 1692 'contextlevel' => CONTEXT_COURSE,
31c93303 1693 'archetypes' => array(
ad0ae261 1694 'user' => CAP_ALLOW,
6595a568
MD
1695 'student' => CAP_ALLOW,
1696 'teacher' => CAP_ALLOW,
1697 'editingteacher' => CAP_ALLOW,
1698 'manager' => CAP_ALLOW
1699 )
1700 ),
19fae119 1701 'moodle/rating:viewall' => array(
ad0ae261 1702
a09aeee4
AD
1703 'riskbitmask' => RISK_PERSONAL,
1704 'captype' => 'read',
ad0ae261 1705 'contextlevel' => CONTEXT_COURSE,
31c93303 1706 'archetypes' => array(
ad0ae261 1707 'user' => CAP_ALLOW,
6595a568 1708 'student' => CAP_ALLOW,
e116a818
AD
1709 'teacher' => CAP_ALLOW,
1710 'editingteacher' => CAP_ALLOW,
4f0c2d00 1711 'manager' => CAP_ALLOW
a09aeee4
AD
1712 )
1713 ),
19fae119 1714 'moodle/rating:rate' => array(
ad0ae261 1715
a09aeee4 1716 'captype' => 'write',
ad0ae261 1717 'contextlevel' => CONTEXT_COURSE,
31c93303 1718 'archetypes' => array(
ad0ae261 1719 'user' => CAP_ALLOW,
6595a568 1720 'student' => CAP_ALLOW,
e116a818
AD
1721 'teacher' => CAP_ALLOW,
1722 'editingteacher' => CAP_ALLOW,
4f0c2d00 1723 'manager' => CAP_ALLOW
a09aeee4 1724 )
07ab0c80 1725 ),
1726 'moodle/course:publish' => array(
1727
07ab0c80 1728 'captype' => 'write',
ad0ae261 1729 'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
07ab0c80 1730 'contextlevel' => CONTEXT_SYSTEM,
31c93303 1731 'archetypes' => array(
07ab0c80 1732 'manager' => CAP_ALLOW
1733 )
2be4d090
MD
1734 ),
1735 'moodle/course:markcomplete' => array(
1736 'captype' => 'write',
1737 'contextlevel' => CONTEXT_COURSE,
31c93303 1738 'archetypes' => array(
2be4d090
MD
1739 'teacher' => CAP_ALLOW,
1740 'editingteacher' => CAP_ALLOW,
1741 'coursecreator' => CAP_ALLOW,
1742 'manager' => CAP_ALLOW
1743 )
755f96f8 1744 ),
1745 'moodle/community:add' => array(
1746 'captype' => 'write',
1747 'contextlevel' => CONTEXT_SYSTEM,
1748 'archetypes' => array(
1749 'manager' => CAP_ALLOW,
1750 'teacher' => CAP_ALLOW,
17957b8f 1751 'editingteacher' => CAP_ALLOW,
755f96f8 1752 'coursecreator' => CAP_ALLOW
1753 )
1754 ),
1755 'moodle/community:download' => array(
1756 'captype' => 'write',
1757 'contextlevel' => CONTEXT_SYSTEM,
1758 'archetypes' => array(
1759 'manager' => CAP_ALLOW,
17957b8f 1760 'editingteacher' => CAP_ALLOW,
755f96f8 1761 'coursecreator' => CAP_ALLOW
1762 )
79642064 1763 )
bbbf2d40 1764);