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: Fire Department Rescues Blue Macaw In The Loop

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: One Dead, Another Critical After A Fiery Car Crash On Lake Shore Drive

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: Two Chicago Police Officers Shot On South Lawndale Released From Hospital

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