Permalink
Browse files

MDL-36283 use accesscontext when assigning cohort members

  • Loading branch information...
1 parent ecf1f30 commit bf3bd818bf24886c10e0f5ca06e8242a701060ef @skodak skodak committed with danpoltawski Nov 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cohort/assign.php
View
@@ -70,8 +70,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

0 comments on commit bf3bd81

Please sign in to comment.