Please rewrite this sentence to remove all grammar mistakes:
Thus, the discriminatory treatment an individual may be subjected to makes it essential that their consent be obtained in advanced.
Thus, the discriminatory treatment an individual may be subjected to makes it essential that their consent be obtained in advance.