Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
 * Tiny premium capabilities.
19
 *
20
 * @package    tiny_premium
21
 * @copyright  2023 David Woloszyn <david.woloszyn@moodle.com>
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die();
26
 
27
$capabilities = [
1441 ariadna 28
    'tiny/premium:use' => [
29
        'captype' => 'read',
30
        'contextlevel' => CONTEXT_MODULE,
1 efrain 31
        'archetypes' => [
32
            'user' => CAP_ALLOW,
33
        ],
1441 ariadna 34
        'clonepermissionsfrom' => 'tiny/premium:accesspremium',
1 efrain 35
    ],
1441 ariadna 36
    'tiny/premium:usea11ychecker' => [
37
        'captype' => 'read',
38
        'contextlevel' => CONTEXT_MODULE,
39
        'archetypes' => [
40
            'user' => CAP_ALLOW,
41
        ],
42
    ],
43
    'tiny/premium:useadvtable' => [
44
        'captype' => 'read',
45
        'contextlevel' => CONTEXT_MODULE,
46
        'archetypes' => [
47
            'user' => CAP_ALLOW,
48
        ],
49
    ],
50
    'tiny/premium:usetypography' => [
51
        'captype' => 'read',
52
        'contextlevel' => CONTEXT_MODULE,
53
        'archetypes' => [
54
            'user' => CAP_ALLOW,
55
        ],
56
    ],
57
    'tiny/premium:usecasechange' => [
58
        'captype' => 'read',
59
        'contextlevel' => CONTEXT_MODULE,
60
        'archetypes' => [
61
            'user' => CAP_ALLOW,
62
        ],
63
    ],
64
    'tiny/premium:usechecklist' => [
65
        'captype' => 'read',
66
        'contextlevel' => CONTEXT_MODULE,
67
        'archetypes' => [
68
            'user' => CAP_ALLOW,
69
        ],
70
    ],
71
    'tiny/premium:useeditimage' => [
72
        'captype' => 'read',
73
        'contextlevel' => CONTEXT_MODULE,
74
        'archetypes' => [
75
            'user' => CAP_ALLOW,
76
        ],
77
    ],
78
    'tiny/premium:useexport' => [
79
        'captype' => 'read',
80
        'contextlevel' => CONTEXT_MODULE,
81
        'archetypes' => [
82
            'user' => CAP_ALLOW,
83
        ],
84
    ],
85
    'tiny/premium:usefootnotes' => [
86
        'captype' => 'read',
87
        'contextlevel' => CONTEXT_MODULE,
88
        'archetypes' => [
89
            'user' => CAP_ALLOW,
90
        ],
91
    ],
92
    'tiny/premium:useformatpainter' => [
93
        'captype' => 'read',
94
        'contextlevel' => CONTEXT_MODULE,
95
        'archetypes' => [
96
            'user' => CAP_ALLOW,
97
        ],
98
    ],
99
    'tiny/premium:uselinkchecker' => [
100
        'captype' => 'read',
101
        'contextlevel' => CONTEXT_MODULE,
102
        'archetypes' => [
103
            'user' => CAP_ALLOW,
104
        ],
105
    ],
106
    'tiny/premium:usepageembed' => [
107
        'captype' => 'read',
108
        'contextlevel' => CONTEXT_MODULE,
109
        'archetypes' => [
110
            'user' => CAP_ALLOW,
111
        ],
112
    ],
113
    'tiny/premium:usepermanentpen' => [
114
        'captype' => 'read',
115
        'contextlevel' => CONTEXT_MODULE,
116
        'archetypes' => [
117
            'user' => CAP_ALLOW,
118
        ],
119
    ],
120
    'tiny/premium:usepowerpaste' => [
121
        'captype' => 'read',
122
        'contextlevel' => CONTEXT_MODULE,
123
        'archetypes' => [
124
            'user' => CAP_ALLOW,
125
        ],
126
    ],
127
    'tiny/premium:usetinymcespellchecker' => [
128
        'captype' => 'read',
129
        'contextlevel' => CONTEXT_MODULE,
130
        'archetypes' => [
131
            'user' => CAP_ALLOW,
132
        ],
133
    ],
134
    'tiny/premium:useautocorrect' => [
135
        'captype' => 'read',
136
        'contextlevel' => CONTEXT_MODULE,
137
        'archetypes' => [
138
            'user' => CAP_ALLOW,
139
        ],
140
    ],
141
    'tiny/premium:usetableofcontents' => [
142
        'captype' => 'read',
143
        'contextlevel' => CONTEXT_MODULE,
144
        'archetypes' => [
145
            'user' => CAP_ALLOW,
146
        ],
147
    ],
148
    'tiny/premium:usemath' => [
149
        'captype' => 'read',
150
        'contextlevel' => CONTEXT_MODULE,
151
        'archetypes' => [
152
            'user' => CAP_ALLOW,
153
        ],
154
    ],
1 efrain 155
];
1441 ariadna 156
 
157
$deprecatedcapabilities = [
158
    'tiny/premium:accesspremium' => [
159
        'replacement' => 'tiny/premium:use',
160
        'message' => 'This capability has been renamed',
161
    ],
162
];