MDL-14627 new mod/url:view capability
[moodle.git] / mod / url / db / access.php
CommitLineData
58a27a74 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 * Capability definitions for the url module.
20 *
2b641d15
PS
21 * @package mod
22 * @subpackage url
23 * @copyright 2009 Petr Skoda {@link http://skodak.org}
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
58a27a74 25 */
26
2b641d15
PS
27defined('MOODLE_INTERNAL') || die;
28
0ac940b3 29$capabilities = array(
ccd7189a
PS
30 'mod/url:view' => array(
31 'captype' => 'read',
32 'contextlevel' => CONTEXT_MODULE,
33 'archetypes' => array(
34 'guest' => CAP_ALLOW,
35 'user' => CAP_ALLOW,
36 )
37 ),
38
58a27a74 39/* TODO: review public portfolio API first!
40 'mod/url:portfolioexport' => array(
41
42 'captype' => 'read',
43 'contextlevel' => CONTEXT_MODULE,
31c93303 44 'archetypes' => array(
58a27a74 45 'teacher' => CAP_ALLOW,
46 'editingteacher' => CAP_ALLOW,
47 )
48 ),*/
49
50);
51