Cal. Health & Safety Code § 18307
(a) The department may delegate all or any portion of the authority to enforce this part and the regulations adopted pursuant to this part, or to enforce specific sections of this part or those regulations, to a local building department or health department of any city, county, or city and county, where the department is the enforcement agency, if all of the following conditions exist: