have someone to rights

Verb

 * 1)  To get even with someone; to give them what they deserve.
 * 2)  To gauge or evaluate someone accurately.