2009-07-07 02:26:36 +00:00
|
|
|
<?php
|
|
|
|
// 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/>.
|
2007-10-10 06:34:20 +00:00
|
|
|
|
2012-01-06 11:52:46 +07:00
|
|
|
/**
|
|
|
|
* Defines capabilities for the user report
|
|
|
|
*
|
|
|
|
* @package gradereport_user
|
|
|
|
* @copyright 2007 onwards Martin Dougiamas (http://dougiamas.com)
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
2012-01-14 19:48:42 +01:00
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
|
2022-09-16 12:56:48 +02:00
|
|
|
$capabilities = [
|
|
|
|
'gradereport/user:view' => [
|
2007-06-18 07:24:03 +00:00
|
|
|
'riskbitmask' => RISK_PERSONAL,
|
|
|
|
'captype' => 'read',
|
|
|
|
'contextlevel' => CONTEXT_COURSE,
|
2022-09-16 12:56:48 +02:00
|
|
|
'archetypes' => [
|
2007-06-18 07:35:14 +00:00
|
|
|
'student' => CAP_ALLOW,
|
2007-06-18 07:24:03 +00:00
|
|
|
'teacher' => CAP_ALLOW,
|
|
|
|
'editingteacher' => CAP_ALLOW,
|
2010-03-31 07:41:31 +00:00
|
|
|
'manager' => CAP_ALLOW
|
2022-09-16 12:56:48 +02:00
|
|
|
]
|
|
|
|
],
|
|
|
|
];
|
2007-06-18 07:24:03 +00:00
|
|
|
|
2009-11-01 12:11:29 +00:00
|
|
|
|