If the person in the way can not avoid getting out of the way, a let is called otherwise if they could get out of the way but don't, the person going for the ball gets a point.
Here is a more in depth look at Squash Rules