Cal. Bus. & Prof. Code § 19804
(a) In any action for declaratory or injunctive relief, or for relief by way of any extraordinary writ, other than an action initiated pursuant to Section 19932, wherein the construction, application, or enforcement of this chapter, or any regulation adopted pursuant thereto, or any order of the department or the commission issued pursuant thereto, is called into question, a court shall not grant any preliminary or permanent injunction, or any peremptory writ of mandate, certiorari, or prohibition, in connection therewith, except as follows: