MDL-49826 gradereport_singleview: fix permission check

Users with capability 'moodle/grade:edit' should be able to edit grade values
- 'moodle/grade:manage' is not needed, as grade items are not being changed.
This commit is contained in:
Davo Smith
2015-08-20 14:55:56 +01:00
parent dda862abb5
commit 4021aa45ce
+1 -1
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);
}
}