Merge branch 'MDL-51628-master' of git://github.com/damyon/moodle
authorDan Poltawski <dan@moodle.com>
Mon, 9 Nov 2015 11:01:21 +0000 (11:01 +0000)
committerDan Poltawski <dan@moodle.com>
Mon, 9 Nov 2015 11:01:21 +0000 (11:01 +0000)
mod/assign/locallib.php

index 9ac8833..74994bb 100644 (file)
@@ -5588,7 +5588,7 @@ class assign {
         require_once($CFG->dirroot . '/mod/assign/gradingoptionsform.php');
 
         // Need submit permission to submit an assignment.
-        require_capability('mod/assign:grade', $this->context);
+        $this->require_view_grades();
         require_sesskey();
 
         // Is advanced grading enabled?