Cal. Health & Safety Code § 25214.3
(b)
(2) In assessing the amount of an administrative or a civil penalty for a violation of this article, the presiding officer or the court, as applicable, shall consider all of the following:
(d)
(1) For the purpose of administering and enforcing this article, an authorized representative of the department, upon obtaining consent or after obtaining an inspection warrant pursuant to Title 13 (commencing with Section 1822.50) of Part 3 of the Code of Civil Procedure, may, upon presenting appropriate credentials and at a reasonable time, do any of the following:
(2)