Cal. Gov't Code § 41801
The city attorney shall advise the city officials in all legal matters pertaining to city business.