Merge branch 'MDL-51628-master' of git://github.com/damyon/moodle
[moodle.git] / 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?