Neither the parent nor the aisle passenger were entitled to the middle seat.
But morally speaking, the aisle passenger was a jerk and should have allowed the parent or the child to use the middle seat, provided the child was well behaved and not get into the space of the aisle passenger.