Cal. Health & Safety Code § 50830
(a) Except as otherwise provided in subdivisions (b) and (c), no city or county shall be eligible to receive funds pursuant to this chapter if the city or county has adopted a general plan, ordinance, or other measure which directly limits, by number, either of the following:
(b) Subdivision (a) shall not apply to either of the following:
(1) An ordinance adopted by a city or county which does any of the following: