You train people how to treat you.
If you allow people to treat you a certain way, they will continue to do it.
Stop accepting poor behavior. — Stop accepting excuses. — Stop compromising your integrity for others.
BUT, don’t forget the opposite side of the blade — quit treating others in a way you would never allow yourself to be treated.
Train others how to treat you just as much as you train yourself how to treat others.