mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
♻️(backend) refactor caller identity getter
Enhance getting the caller's identity to prevent None.
This commit is contained in:
committed by
aleb_the_flash
parent
385da86759
commit
71f76a81e9
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user