2009-11-04 08:11:02 +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/>.
|
2008-11-29 14:22:10 +00:00
|
|
|
|
2012-01-14 19:48:42 +01:00
|
|
|
/**
|
|
|
|
* Plugin capabilities
|
|
|
|
*
|
|
|
|
* @package report_stats
|
|
|
|
* @copyright 1999 onwards Martin Dougiamas http://moodle.com
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
2008-11-29 14:22:10 +00:00
|
|
|
|
2009-11-04 19:24:12 +00:00
|
|
|
$capabilities = array(
|
2008-11-29 14:22:10 +00:00
|
|
|
|
2011-11-03 10:34:47 +01:00
|
|
|
'report/stats:view' => array(
|
2008-11-29 14:22:10 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
2010-05-21 11:51:23 +00:00
|
|
|
'archetypes' => array(
|
2008-11-29 14:22:10 +00:00
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
2010-03-31 07:41:31 +00:00
|
|
|
'manager' => CAP_ALLOW
|
2008-11-29 14:22:10 +00:00
|
|
|
),
|
|
|
|
|
2011-11-03 10:34:47 +01:00
|
|
|
'clonepermissionsfrom' => 'coursereport/stats:view',
|
2008-11-29 14:22:10 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2009-11-04 08:11:02 +00:00
|
|
|
|