From 9a7bf75d517ff1524730d7de5d7d66120be907bc Mon Sep 17 00:00:00 2001 From: Nitish Bezzala Date: Wed, 16 Oct 2013 05:39:26 -0500 Subject: [PATCH] Errors when adding new institution members (bug 1046114) Once the members have been added and the change has been commited to the database, logout each user who has been added. Change-Id: I732c7fcbb5ea5913c5e3def8a7a3950c5e83e554 Signed-off-by: Nitish Bezzala --- htdocs/lib/institution.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/lib/institution.php b/htdocs/lib/institution.php index 9ee6a82aa1..28447da2c3 100644 --- a/htdocs/lib/institution.php +++ b/htdocs/lib/institution.php @@ -277,6 +277,10 @@ class Institution { $this->addUserAsMember($user); } db_commit(); + + foreach ($users as $user) { + remove_user_sessions($user->id); + } } public function addRequestFromUser($user, $studentid = null) { -- GitLab