mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
enrol MDL-23447 Others users page now only lists roles that have moodle/course:view
This commit is contained in:
parent
cb184beb24
commit
9f15347e2c
7 changed files with 49 additions and 14 deletions
|
@ -494,7 +494,8 @@ class course_enrolment_table extends html_table implements renderable {
|
|||
$arguments = array(
|
||||
'containerId'=>$this->id,
|
||||
'userIds'=>array_keys($users),
|
||||
'courseId'=>$this->manager->get_course()->id);
|
||||
'courseId'=>$this->manager->get_course()->id,
|
||||
'otherusers'=>isset($this->otherusers));
|
||||
$page->requires->yui_module($modules, $function, array($arguments));
|
||||
}
|
||||
}
|
||||
|
@ -719,6 +720,8 @@ class course_enrolment_users_table extends course_enrolment_table {
|
|||
*/
|
||||
class course_enrolment_other_users_table extends course_enrolment_table {
|
||||
|
||||
public $otherusers = true;
|
||||
|
||||
/**
|
||||
* Constructs the table
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue