Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-36283 use accesscontext when assigning cohort members
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Nov 10, 2012
1 parent 8ccaa29 commit d86b7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cohort/assign.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
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

Expand Down

0 comments on commit d86b7de

Please sign in to comment.