mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-10579 capabilities for grade report plugins
This commit is contained in:
parent
a7a8973866
commit
54690a0894
6
grade/report/grader/version.php
Normal file
6
grade/report/grader/version.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
$plugin->version = 2007072404;
|
||||
$plugin->requires = 2007072402;
|
||||
|
||||
?>
|
18
grade/report/outcomes/db/access.php
Normal file
18
grade/report/outcomes/db/access.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php // $Id$
|
||||
|
||||
$gradereport_outcomes_capabilities = array(
|
||||
|
||||
'gradereport/outcomes:view' => array(
|
||||
'riskbitmask' => RISK_PERSONAL,
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
'teacher' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
?>
|
6
grade/report/outcomes/version.php
Normal file
6
grade/report/outcomes/version.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
$plugin->version = 2007072404;
|
||||
$plugin->requires = 2007072402;
|
||||
|
||||
?>
|
@ -1,6 +1,6 @@
|
||||
<?php // $Id$
|
||||
|
||||
$gradereport_grader_capabilities = array(
|
||||
$gradereport_user_capabilities = array(
|
||||
|
||||
'gradereport/user:view' => array(
|
||||
'riskbitmask' => RISK_PERSONAL,
|
||||
@ -13,18 +13,6 @@ $gradereport_grader_capabilities = array(
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'moodle/user:viewusergrade' => array(
|
||||
'riskbitmask' => RISK_PERSONAL,
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_USER,
|
||||
'legacy' => array(
|
||||
'teacher' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
?>
|
||||
|
6
grade/report/user/version.php
Normal file
6
grade/report/user/version.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
$plugin->version = 2007072405;
|
||||
$plugin->requires = 2007072402;
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user