mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
First pass at grader report capabilities
This commit is contained in:
parent
c3bbc0c2a8
commit
2de494a5a1
@ -1,2 +1,29 @@
|
||||
<?php // $Id$
|
||||
|
||||
$gradereport_grader_capabilities = array(
|
||||
|
||||
'gradereport/user:view' => array(
|
||||
'riskbitmask' => RISK_PERSONAL,
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
'teacher' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'gradereport/grader:manage' => array(
|
||||
'riskbitmask' => RISK_PERSONAL | RISK_CONFIG,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
'teacher' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user