MDL-29483 The capability to manage grading forms can be overridden at the Assignment...
authorDavid Mudrak <david@moodle.com>
Fri, 11 Nov 2011 12:59:04 +0000 (13:59 +0100)
committerDavid Mudrak <david@moodle.com>
Fri, 11 Nov 2011 12:59:04 +0000 (13:59 +0100)
mod/assignment/lib.php

index fabb44d..d7b9a2c 100644 (file)
@@ -3798,7 +3798,7 @@ function assignment_reset_course_form_defaults($course) {
  * Returns all other caps used in module
  */
 function assignment_get_extra_capabilities() {
-    return array('moodle/site:accessallgroups', 'moodle/site:viewfullnames');
+    return array('moodle/site:accessallgroups', 'moodle/site:viewfullnames', 'moodle/grade:managegradingforms');
 }
 
 /**