Merge branch 'MDL-49826_grade_single_view' of git://github.com/davosmith/moodle

This commit is contained in:
Dan Poltawski 2015-08-24 10:39:06 +01:00
commit 7ee1695850

View File

@ -52,7 +52,7 @@ class gradereport_singleview extends grade_report {
* @return array List of warnings
*/
public function process_data($data) {
if (has_capability('moodle/grade:manage', $this->context)) {
if (has_capability('moodle/grade:edit', $this->context)) {
return $this->screen->process($data);
}
}