Merge branch 'MDL-35971-master' of git://github.com/junpataleta/moodle
[moodle.git] / mod / scorm / db / access.php
CommitLineData
bbbf2d40 1<?php
f7b5c6aa 2// This file is part of Moodle - http://moodle.org/
bbbf2d40 3//
f7b5c6aa
DM
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.
bbbf2d40 8//
f7b5c6aa
DM
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.
bbbf2d40 13//
f7b5c6aa
DM
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/>.
bbbf2d40 16
f7b5c6aa
DM
17/**
18 * Capability definitions for the quiz module.
19 *
e67bc2a4
PS
20 * @package mod_scorm
21 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
f7b5c6aa
DM
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23 */
e67bc2a4
PS
24
25defined('MOODLE_INTERNAL') || die();
26
0ac940b3 27$capabilities = array(
eef868d1 28
88eca3cd
TH
29 'mod/scorm: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
0d699c24 41 'mod/scorm:viewreport' => array(
eef868d1 42
0d699c24 43 'captype' => 'read',
44 'contextlevel' => CONTEXT_MODULE,
31c93303 45 'archetypes' => array(
0d699c24 46 'teacher' => CAP_ALLOW,
47 'editingteacher' => CAP_ALLOW,
4f0c2d00 48 'manager' => CAP_ALLOW
0d699c24 49 )
50 ),
eef868d1 51
32cfa4db 52 'mod/scorm:skipview' => array(
53
a3747696 54 'captype' => 'read',
32cfa4db 55 'contextlevel' => CONTEXT_MODULE,
31c93303 56 'archetypes' => array(
2d5a4f25 57 'student' => CAP_ALLOW
32cfa4db 58 )
59 ),
60
2b3447c3 61 'mod/scorm:savetrack' => array(
eef868d1 62
2b3447c3 63 'captype' => 'write',
bbbf2d40 64 'contextlevel' => CONTEXT_MODULE,
31c93303 65 'archetypes' => array(
2b3447c3 66 'student' => CAP_ALLOW,
bbbf2d40 67 'teacher' => CAP_ALLOW,
2d5a4f25 68 'editingteacher' => CAP_ALLOW,
4f0c2d00 69 'manager' => CAP_ALLOW
2b3447c3 70 )
71 ),
eef868d1 72
2b3447c3 73 'mod/scorm:viewscores' => array(
eef868d1 74
2b3447c3 75 'captype' => 'read',
76 'contextlevel' => CONTEXT_MODULE,
31c93303 77 'archetypes' => array(
2b3447c3 78 'student' => CAP_ALLOW,
2d5a4f25 79 'teacher' => CAP_ALLOW,
80 'editingteacher' => CAP_ALLOW,
4f0c2d00 81 'manager' => CAP_ALLOW
bbbf2d40 82 )
7554f671 83 ),
84 'mod/scorm:deleteresponses' => array(
eef868d1 85
a3747696 86 'captype' => 'write',
7554f671 87 'contextlevel' => CONTEXT_MODULE,
31c93303 88 'archetypes' => array(
7554f671 89 'teacher' => CAP_ALLOW,
90 'editingteacher' => CAP_ALLOW,
4f0c2d00 91 'manager' => CAP_ALLOW
7554f671 92 )
d32e353e
DM
93 ),
94 'mod/scorm:deleteownresponses' => array(
95
96 'captype' => 'write',
97 'contextlevel' => CONTEXT_MODULE,
98 'archetypes' => array()
7554f671 99 )
bbbf2d40 100);
101