CHICAGO (CBS) — A help-wanted ad in the suburbs raised eyebrows this week – with its suggestion that only Democrats need apply.

Such a restriction would be illegal.

READ MORE: Closing Arguments Underway In Jussie Smollett's Trial For Allegedly Staging Phony Hate Crime; 'We Have Proven This By Overwhelming Evidence'

The ad was posted by the Joliet Township government. They are looking for a part-time deputy town clerk.

The ad lists all the standard requirements and a job description that involves filing and answering phones.

READ MORE: Justin Fields To Return As Bears' Starting QB On Sunday Against Packers

But here’s the whoopsie – it says the candidate must have “voted in a Democratic primary election.”

That kind of stipulation, again, is illegal.

MORE NEWS: 71-Year-Old Man Shot Multiple Times, Killed While Heading To Store To Buy Newspaper In Chinatown

CBS 2 reached out to the township. They said they didn’t realize that, and they have since removed the requirement.