Skip to content

Commit ea42eb8

Browse files
authored
add missing auth grant to forward participant (#425)
1 parent 1d2d010 commit ea42eb8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

livekit-api/livekit/api/access_token.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class VideoGrants:
3939
room_join: Optional[bool] = None
4040
room: str = ""
4141

42+
# allows forwarding participant to room
43+
destination_room: Optional[str] = None
44+
4245
# permissions within a room
4346
can_publish: bool = True
4447
can_subscribe: bool = True

livekit-api/livekit/api/room_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async def forward_participant(self, forward: ForwardParticipantRequest) -> None:
215215
SVC,
216216
"ForwardParticipant",
217217
forward,
218-
self._auth_header(VideoGrants(room_admin=True, room=forward.room)),
218+
self._auth_header(VideoGrants(room_admin=True, room=forward.room, destination_room=forward.destination_room)),
219219
ForwardParticipantResponse,
220220
)
221221

0 commit comments

Comments
 (0)