The California State Bar will be banned from seeking a would-be lawyer’s mental health records as part of its moral character assessment process under legislation signed into law Tuesday by Gov. Gavin Newsom.

The law is aimed at ending the bar’s practice of requiring applicants to sign broad waivers allowing the Committee on Bar Examiners to access documents or data related to their medical and mental health.