Definition (permissibility)
If someone is within their rights, they are acting in a way that is legally or morally permissible.
I believe I am completely within my rights to ask for a full refund.
You are within your rights to request a change of teacher.
He is perfectly within his rights to refuse to pay for that.