mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 11:52:28 +00:00
update participant grants (#782)
This commit is contained in:
1 parent
adf2d191b0
commit
407996702b
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user