diff --git a/pkg/service/roomallocator.go b/pkg/service/roomallocator.go index 43d0edc0..436a433c 100644 --- a/pkg/service/roomallocator.go +++ b/pkg/service/roomallocator.go @@ -174,7 +174,7 @@ func (r *StandardRoomAllocator) SelectRoomNode(ctx context.Context, roomName liv func (r *StandardRoomAllocator) ValidateCreateRoom(ctx context.Context, roomName livekit.RoomName) error { // when auto create is disabled, we'll check to ensure it's already created - if !r.config.Room.AutoCreate { + if !r.config.Room.AutoCreate && EnsureCreatePermission(ctx) != nil { _, _, err := r.roomStore.LoadRoom(ctx, roomName, false) if err != nil { return err