Check DestinationRoom of VideoGrant for participant forwarding (#3599)

This commit is contained in:
cnderrauber
2025-04-09 15:13:29 +08:00
committed by GitHub
parent 2e236a193e
commit 5c2d96b9d3
4 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ func (s *RoomService) ForwardParticipant(ctx context.Context, req *livekit.Forwa
roomName := livekit.RoomName(req.Room)
AppendLogFields(ctx, "room", roomName, "participant", req.Identity)
if err := EnsureAdminPermission(ctx, roomName); err != nil {
if err := EnsureForwardPermission(ctx, roomName, livekit.RoomName(req.DestinationRoom)); err != nil {
return nil, twirpAuthError(err)
}