From 407996702b619d9b7c6ace07f4f8fc0d6ef4750e Mon Sep 17 00:00:00 2001 From: David Colburn Date: Fri, 24 Jun 2022 09:29:04 -0700 Subject: [PATCH] update participant grants (#782) --- pkg/service/egress.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/service/egress.go b/pkg/service/egress.go index 52f0d14af..d08c627de 100644 --- a/pkg/service/egress.go +++ b/pkg/service/egress.go @@ -135,6 +135,10 @@ func (s *EgressService) UpdateLayout(ctx context.Context, req *livekit.UpdateLay return nil, err } + grants := GetGrants(ctx) + grants.Video.Room = roomName + grants.Video.RoomAdmin = true + _, err = s.roomService.UpdateParticipant(ctx, &livekit.UpdateParticipantRequest{ Room: roomName, Identity: info.EgressId,