He who consents to an act is not wronged by it.

(Enacted 1872.)