Skip to content

Commit

Permalink
[#147] Pass context to user selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhilton committed Apr 21, 2024
1 parent 10d6966 commit f7b1c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editattendees.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
$errors = array();

// Get the user_selector we will need.
$potentialuserselector = new facetoface_candidate_selector('addselect', array('sessionid' => $session->id, 'courseid' => $course->id));
$existinguserselector = new facetoface_existing_selector('removeselect', array('sessionid' => $session->id));
$potentialuserselector = new facetoface_candidate_selector('addselect', array('sessionid' => $session->id, 'courseid' => $course->id, 'accesscontext' => $context));
$existinguserselector = new facetoface_existing_selector('removeselect', array('sessionid' => $session->id, 'accesscontext' => $context));

// Process incoming user assignments.
if (optional_param('add', false, PARAM_BOOL) && confirm_sesskey()) {
Expand Down

0 comments on commit f7b1c85

Please sign in to comment.