Notwithstanding any other provision of this code, no person who has not previously obtained a license regulated by this code shall be denied a license solely on the basis that he has been convicted of a crime if he has obtained a certificate of rehabilitation under Section 4852.01 and following of the Penal Code, and if his probation has been terminated and the information or accusation has been dismissed pursuant to Section 1203.4 of the Penal Code.