Cal. Penal Code § 26510
Section 26500 does not apply to a person acting pursuant to subdivision (f) of Section 186.22a or Section 18000 or 18005.