mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Replacing the capability gradereport/grader:manage with moodle/grade:manage
This commit is contained in:
parent
a98a90163e
commit
b1b6ebf437
@ -11,19 +11,7 @@ $gradereport_grader_capabilities = array(
|
||||
'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
|
||||
)
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
?>
|
||||
|
@ -38,7 +38,7 @@ if (!$course = get_record('course', 'id', $courseid)) {
|
||||
require_login($course->id);
|
||||
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_capability('gradereport/grader:manage', $context);
|
||||
require_capability('moodle/grade:manage', $context);
|
||||
|
||||
// If data submitted, then process and store.
|
||||
if ($data = data_submitted()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user