enrol MDL-23447 Others users page now only lists roles that have moodle/course:view

This commit is contained in:
Sam Hemelryk 2010-07-23 08:21:42 +00:00
parent cb184beb24
commit 9f15347e2c
7 changed files with 49 additions and 14 deletions

View file

@ -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
*