MDL-16651 - add in delete attempt capability - thanks Dan/Tim.
[moodle.git] / mod / scorm / db / access.php
CommitLineData
bbbf2d40 1<?php
2//
3// Capability definitions for the scorm module.
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:
17// [mod/block]/<component_name>:<capabilityname>
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//
28// The variable name for the capability definitions array follows the format
29// $<componenttype>_<component_name>_capabilities
30//
31// For the core capabilities, the variable is $moodle_capabilities.
32
33
34$mod_scorm_capabilities = array(
eef868d1 35
0d699c24 36 'mod/scorm:viewreport' => array(
eef868d1 37
0d699c24 38 'captype' => 'read',
39 'contextlevel' => CONTEXT_MODULE,
40 'legacy' => array(
0d699c24 41 'teacher' => CAP_ALLOW,
42 'editingteacher' => CAP_ALLOW,
0d699c24 43 'admin' => CAP_ALLOW
44 )
45 ),
eef868d1 46
32cfa4db 47 'mod/scorm:skipview' => array(
48
49 'captype' => 'write',
50 'contextlevel' => CONTEXT_MODULE,
51 'legacy' => array(
2d5a4f25 52 'student' => CAP_ALLOW
32cfa4db 53 )
54 ),
55
2b3447c3 56 'mod/scorm:savetrack' => array(
eef868d1 57
2b3447c3 58 'captype' => 'write',
bbbf2d40 59 'contextlevel' => CONTEXT_MODULE,
60 'legacy' => array(
2b3447c3 61 'student' => CAP_ALLOW,
bbbf2d40 62 'teacher' => CAP_ALLOW,
2d5a4f25 63 'editingteacher' => CAP_ALLOW,
2585a68d 64 'admin' => CAP_ALLOW
2b3447c3 65 )
66 ),
eef868d1 67
2b3447c3 68 'mod/scorm:viewscores' => array(
eef868d1 69
2b3447c3 70 'captype' => 'read',
71 'contextlevel' => CONTEXT_MODULE,
72 'legacy' => array(
2b3447c3 73 'student' => CAP_ALLOW,
2d5a4f25 74 'teacher' => CAP_ALLOW,
75 'editingteacher' => CAP_ALLOW,
2d5a4f25 76 'admin' => CAP_ALLOW
bbbf2d40 77 )
7554f671 78 ),
79 'mod/scorm:deleteresponses' => array(
eef868d1 80
7554f671 81 'captype' => 'read',
82 'contextlevel' => CONTEXT_MODULE,
83 'legacy' => array(
84 'teacher' => CAP_ALLOW,
85 'editingteacher' => CAP_ALLOW,
86 'admin' => CAP_ALLOW
87 )
88 )
bbbf2d40 89);
90
7554f671 91?>