From 71f76a81e947ee41b4e9a682062794b75598ac39 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sun, 17 May 2026 23:41:44 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(backend)=20refactor=20caller?= =?UTF-8?q?=20identity=20getter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhance getting the caller's identity to prevent None. --- src/backend/core/api/viewsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/core/api/viewsets.py b/src/backend/core/api/viewsets.py index c335ee28..3d80d6c5 100644 --- a/src/backend/core/api/viewsets.py +++ b/src/backend/core/api/viewsets.py @@ -671,7 +671,7 @@ class RoomViewSet( # TEMPORARY: a LiveKit token proves access was granted, not that the caller # joined. Cross-check identity against the live participant list until auth # is hardened. Skipped for non-LiveKit auth backends. - caller_identity = request.auth.identity if request.auth is not None else None + caller_identity = getattr(request.auth, "identity", None) if caller_identity is not None: try: ParticipantsManagement().check_if_in_meeting(