Cal. Penal Code § 26206
(c) Except as specified in paragraph (2), an applicant shall have 30 days after the receipt of the notice of denial described in subdivision (a) to request a hearing to review the denial or revocation from the superior court of their county of residence or, for nonresident applicants, the county in which the application was submitted. The request for hearing shall be made on the “Request for Hearing to Challenge Disqualified Person Determination” form prescribed by the department.
(d)
(f) If the court finds at the hearing that the people have not met their burden, or if the district attorney declines or fails to go forward in the hearing, the court shall order as follows:
(i) If a new license or license renewal pursuant to Section 26150, 26155, or 26170 is denied or revoked based on the applicant’s failure to satisfy paragraph (2), (3), (4), or (5) of subdivision (a) of Section 26150, paragraph (2), (3), (4), or (5) of subdivision (a) of Section 26155, or paragraph (2), (3), or (4) of subdivision (a) of Section 26170, the licensing authority shall provide the applicant with the notice required under Section 26205 or paragraph (3) of subdivision (b) of Section 26195, as applicable, and inform the applicant that they may apply to the superior court of the county in which they reside for a writ of mandate pursuant to Section 1085 of the Code of Civil Procedure. Except as specified in paragraph (2), the application for writ of mandate shall be made within 30 days after the receipt of the notice of denial or the notice of revocation.