Merge pull request #16924 from overleaf/jel-clear-sessions-after-linking

[web] Clear other sessions after linking group SSO for managed users

GitOrigin-RevId: 0671154a34bf67532bad64f1abbdb8a332ab480a
This commit is contained in:
Alexandre Bourdin 2024-02-13 14:21:32 +01:00 committed by Copybot
parent 377cd82f20
commit 0d00c3952c

View file

@ -138,7 +138,14 @@ class Subscription {
})
}
linkGroupSSO(user, externalUserId, userIdAttribute, auditLog, callback) {
linkGroupSSO(
user,
externalUserId,
userIdAttribute,
auditLog,
sessionID,
callback
) {
SubscriptionModel.findById(this._id).exec((error, subscription) => {
if (error) {
return callback(error)
@ -150,6 +157,7 @@ class Subscription {
externalUserId,
userIdAttribute,
auditLog,
sessionID,
callback
)
})