Replacing the capability gradereport/grader:manage with moodle/grade:manage

This commit is contained in:
nicolasconnault 2007-09-12 15:02:06 +00:00
parent a98a90163e
commit b1b6ebf437
2 changed files with 1 additions and 13 deletions

View File

@ -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
)
)
);
?>

View File

@ -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()) {