From c8cc9909ba8e81a62c18e26b2ee96dc00170ead7 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 29 Aug 2024 16:11:55 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(backend)=20give=20every=20participant?= =?UTF-8?q?=20room=20admin=20permission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Participants need to be room admin to interact with LiveKit server api. Until we offer private room, with moderation, all participants will be considered as room admin. note: room admin doesn't offer permission to record a room. please, refer to LiveKit documentation to learn more. --- src/backend/core/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/core/utils.py b/src/backend/core/utils.py index 2fb16615..a4c67792 100644 --- a/src/backend/core/utils.py +++ b/src/backend/core/utils.py @@ -47,6 +47,7 @@ def generate_token(room: str, user, username: Optional[str] = None) -> str: video_grants = VideoGrants( room=room, room_join=True, + room_admin=True, can_update_own_metadata=True, can_publish_sources=[ "camera",