mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-47864 grade_report: Edulevels according to default user permissions
This commit is contained in:
parent
32a69a7d7a
commit
f5d3d0f498
@ -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.
|
||||
*
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user