MDL-47864 grade_report: Edulevels according to default user permissions

This commit is contained in:
David Monllao 2014-10-30 15:56:34 +08:00
parent 32a69a7d7a
commit f5d3d0f498
3 changed files with 19 additions and 1 deletions

View File

@ -36,6 +36,15 @@ defined('MOODLE_INTERNAL') || die();
*/
class grade_report_viewed extends \core\event\grade_report_viewed {
/**
* Initialise the event data.
* @return void
*/
protected function init() {
parent::init();
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
* Returns localised general event name.
*

View File

@ -36,6 +36,15 @@ defined('MOODLE_INTERNAL') || die();
*/
class grade_report_viewed extends \core\event\grade_report_viewed {
/**
* Initialise the event data.
* @return void
*/
protected function init() {
parent::init();
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
* Returns localised general event name.
*

View File

@ -48,7 +48,7 @@ abstract class grade_report_viewed extends base {
$this->reporttype = $shorttype[1];
$this->data['crud'] = 'r';
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_TEACHING;
}
/**