Cal. Rev. & Tax. Code § 7284.12
(d) This section does not prohibit the imposition, extension, increase, levy and collection, or enforcement of a tax, fee, or other assessment on groceries if both of the following apply:
(f) The California Department of Tax and Fee Administration shall not administer and shall terminate its contract to administer any sales or use tax ordinance of a local agency under the Bradley-Burns Uniform Local Sales and Use Tax Law (Part 1.5 (commencing with Section 7200)) if that local agency imposes, increases, levies and collects, or enforces any tax, fee, or other assessment on groceries, as defined in subdivision (g) of Section 7284.10, for which a court of competent jurisdiction has determined both of the following: