Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1434 ariadna 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
 * local_moofactory_notification plugin.
19
 *
20
 * @package     local_moofactory_notification
21
 * @copyright   2020 Patrick ROCHET <patrick.r@lmsfactory.com>
22
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 *
24
 */
25
 
26
defined('MOODLE_INTERNAL') || die();
27
 
28
$capabilities = array(
29
    'local/moofactory_notification:managenotifications' => array(
30
        'riskbitmask'          => RISK_CONFIG,
31
        'captype'              => 'write',
32
        'contextlevel'         => CONTEXT_SYSTEM
33
    ),
34
    'local/moofactory_notification:setnotifications' => array(
35
        'riskbitmask'          => RISK_CONFIG,
36
        'captype'              => 'write',
37
        'contextlevel'         => CONTEXT_SYSTEM
38
    ),
39
    'local/moofactory_notification:coursesenrollments' => array(
40
        'riskbitmask'          => RISK_CONFIG,
41
        'captype' => 'read',
42
        'contextlevel' => CONTEXT_SYSTEM,
43
        'archetypes' => array(
44
            'student' => CAP_ALLOW,
45
            'teacher' => CAP_ALLOW,
46
            'editingteacher' => CAP_ALLOW,
47
            'manager' => CAP_ALLOW,
48
            'coursecreator' => CAP_ALLOW,
49
        ),
50
    ),
51
    'local/moofactory_notification:coursesevents' => array(
52
        'riskbitmask'          => RISK_CONFIG,
53
        'captype' => 'read',
54
        'contextlevel' => CONTEXT_SYSTEM,
55
        'archetypes' => array(
56
            'student' => CAP_ALLOW
57
        ),
58
    ),
59
    'local/moofactory_notification:coursesaccess' => array(
60
        'riskbitmask'          => RISK_CONFIG,
61
        'captype' => 'read',
62
        'contextlevel' => CONTEXT_SYSTEM,
63
        'archetypes' => array(
64
            'student' => CAP_ALLOW
65
        ),
66
    ),
67
    'local/moofactory_notification:modulesaccess' => array(
68
        'riskbitmask'          => RISK_CONFIG,
69
        'captype' => 'read',
70
        'contextlevel' => CONTEXT_SYSTEM,
71
        'archetypes' => array(
72
            'student' => CAP_ALLOW
73
        ),
74
    ),
75
);