♻️(backend) refactor caller identity getter

Enhance getting the caller's identity to prevent None.
This commit is contained in:
lebaudantoine
2026-05-17 23:41:44 +02:00
committed by aleb_the_flash
parent 385da86759
commit 71f76a81e9
+1 -1
View File
@@ -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(