within your rights

within your ˈrights

having the moral or legal right to do something: They were acting perfectly within their rights when they refused to let you into their house.
See also: right, within