]> git.mjollnir.org Git - moodle.git/commitdiff
Replacing the capability gradereport/grader:manage with moodle/grade:manage
authornicolasconnault <nicolasconnault>
Wed, 12 Sep 2007 15:02:06 +0000 (15:02 +0000)
committernicolasconnault <nicolasconnault>
Wed, 12 Sep 2007 15:02:06 +0000 (15:02 +0000)
grade/report/grader/db/access.php
grade/report/grader/preferences.php

index a67c2ab90708337adc0a608c4227079c05cd6430..a45816cd3d03011fb4084948aa2b1631c57ff8a2 100644 (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
-        )
     )
-
 );
 
 ?>
index f188334a52fb1311171b27f908095f18bd542da8..e8ecb35d357af05f110c3826b5995401054237c8 100644 (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()) {