2009-08-07 10:02:47 +00:00
|
|
|
<?php
|
2012-01-14 19:48:42 +01:00
|
|
|
// This file is part of Moodle - http://moodle.org/
|
|
|
|
//
|
|
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Plugin capabilities.
|
|
|
|
*
|
|
|
|
* @package repository_filesystem
|
|
|
|
* @copyright 2009 Dongsheng Cai
|
|
|
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
2009-08-07 10:02:47 +00:00
|
|
|
|
2009-11-04 19:24:12 +00:00
|
|
|
$capabilities = array(
|
2009-08-07 10:02:47 +00:00
|
|
|
|
|
|
|
'repository/filesystem:view' => array(
|
|
|
|
'captype' => 'read',
|
2010-07-28 08:56:49 +00:00
|
|
|
'contextlevel' => CONTEXT_MODULE,
|
2010-05-21 11:51:23 +00:00
|
|
|
'archetypes' => array(
|
2011-12-20 12:11:34 +08:00
|
|
|
'coursecreator' => CAP_ALLOW,
|
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
|
|
|
'manager' => CAP_ALLOW
|
2009-08-07 10:02:47 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|