From f7b1c8502d33b4fa06429791136847804fdcf266 Mon Sep 17 00:00:00 2001 From: Matthew Hilton Date: Mon, 22 Apr 2024 09:07:51 +1000 Subject: [PATCH] [#147] Pass context to user selectors --- editattendees.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editattendees.php b/editattendees.php index 8354d5a..30dc02d 100644 --- a/editattendees.php +++ b/editattendees.php @@ -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()) {