'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
- )
)
-
);
?>
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()) {