The chief legal officer of the city shall be the legal advisor of and attorney for the board.