to prevent sb from doing sth; to prevent sth from happening 挡…的路;妨碍

He wouldn’t allow emotions to get in the way of him doing his job.
他不会让感情妨碍自己的工作。

To get in the way of something means to make it difficult for it to happen, continue, or be appreciated properly.

She had a job which never got in the way of her leisure interests.
她有一份从来不会影响她的业余爱好的工作。