be within your rights (to do something) - definition and synonyms

phrase
  1. to have the moral or legal authority to do something

    You are quite within your rights to sue them.

See also main entry: right