Any employee of the city who solicits support for any candidate for mayor or associate commissioner, or any such employee who endeavors to influence any voter to vote for or against any candidate for mayor or associate commissioner, shall be deemed guilty of a misdemeanor.