Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
// This file is part of Moodle - http://moodle.org/
4
//
5
// Moodle is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// Moodle is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17
 
18
/**
19
 * Version details
20
 *
21
 * Configurable Reports - A Moodle block for creating customizable reports
22
 *
23
 * @package     block_configurable_reports
24
 * @author:     Juan leyva <http://www.twitter.com/jleyvadelgado>
25
 * @date:       2013-09-07
26
 *
27
 * @copyright  Juan leyva <http://www.twitter.com/jleyvadelgado>
28
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 */
30
 
31
$capabilities = array(
32
 
33
    'block/configurable_reports:addinstance' => array(
34
        'riskbitmask' => RISK_SPAM | RISK_XSS,
35
 
36
        'captype' => 'write',
37
        'contextlevel' => CONTEXT_BLOCK,
38
        'archetypes' => array(
39
            'editingteacher' => CAP_ALLOW,
40
            'manager' => CAP_ALLOW
41
        ),
42
 
43
        'clonepermissionsfrom' => 'moodle/site:manageblocks'
44
    ),
45
 
46
    'block/configurable_reports:myaddinstance' => array(
47
        'riskbitmask' => RISK_SPAM | RISK_XSS,
48
 
49
        'captype' => 'write',
50
        'contextlevel' => CONTEXT_BLOCK,
51
        'archetypes' => array(
52
            'editingteacher' => CAP_ALLOW,
53
            'manager' => CAP_ALLOW
54
        ),
55
    ),
56
 
57
    'block/configurable_reports:managereports' => array(
58
 
59
        'captype' => 'write',
60
        'contextlevel' => CONTEXT_BLOCK,
61
        'archetypes' => array(
62
            'manager' => CAP_ALLOW
63
        )
64
    ),
65
 
66
    'block/configurable_reports:managesqlreports' => array(
67
 
68
        'captype' => 'write',
69
        'contextlevel' => CONTEXT_BLOCK,
70
        'archetypes' => array(
71
            'manager' => CAP_ALLOW
72
        )
73
    ),
74
 
75
    'block/configurable_reports:manageownreports' => array(
76
 
77
        'captype' => 'write',
78
        'contextlevel' => CONTEXT_BLOCK,
79
        'archetypes' => array(
80
            'manager' => CAP_ALLOW
81
        )
82
    ),
83
 
84
    'block/configurable_reports:viewreports' => array(
85
 
86
        'captype' => 'read',
87
        'contextlevel' => CONTEXT_BLOCK,
88
        'archetypes' => array(
89
            'manager' => CAP_ALLOW
90
        )
91
    )
92
 
93
);