From bc2a72bd3d72e33eb0f191b2d571497efe0c4f00 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Mon, 14 Oct 2024 16:13:28 -0300 Subject: [PATCH] Fix checkAuth Headers for removed users Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .../web/controllers/ConnectionController.groovy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ConnectionController.groovy b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ConnectionController.groovy index 8cf7e63f72..c3ba847019 100755 --- a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ConnectionController.groovy +++ b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ConnectionController.groovy @@ -102,12 +102,12 @@ class ConnectionController { UserSessionBasicData removedUserSession = meetingService.getRemovedUserSessionWithSessionToken(sessionToken) if(removedUserSession) { response.addHeader("Meeting-Id", removedUserSession.meetingId) - response.addHeader("Meeting-External-Id", userSession.externMeetingID) - response.addHeader("User-Id", userSession.internalUserId) - response.addHeader("User-External-Id", userSession.externUserID) - response.addHeader("User-Name", URLEncoder.encode(userSession.fullname, StandardCharsets.UTF_8.name())) - response.addHeader("User-Is-Moderator", u && u.isModerator() ? "true" : "false") - response.addHeader("User-Is-Presenter", u && u.isPresenter() ? "true" : "false") + response.addHeader("Meeting-External-Id", removedUserSession.externMeetingID) + response.addHeader("User-Id", removedUserSession.internalUserId) + response.addHeader("User-External-Id", removedUserSession.externUserID) + response.addHeader("User-Name", URLEncoder.encode(removedUserSession.fullname, StandardCharsets.UTF_8.name())) + response.addHeader("User-Is-Moderator", removedUserSession.isModerator() ? "true" : "false") + response.addHeader("User-Is-Presenter", "false") response.setStatus(200) withFormat { json {