mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
MDL-36283 use accesscontext when assigning cohort members
This commit is contained in:
parent
8ccaa296fa
commit
d86b7de799
@ -68,8 +68,8 @@ echo $OUTPUT->heading(get_string('assignto', 'cohort', format_string($cohort->na
|
||||
echo $OUTPUT->notification(get_string('removeuserwarning', 'core_cohort'));
|
||||
|
||||
// Get the user_selector we will need.
|
||||
$potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id));
|
||||
$existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id));
|
||||
$potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id, 'accesscontext'=>$context));
|
||||
$existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id, 'accesscontext'=>$context));
|
||||
|
||||
// Process incoming user assignments to the cohort
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user