WASHINGTON (AP) — The Supreme Court has agreed to determine whether a Minnesota statute that prohibits wearing political apparel in polling places is unconstitutional.

The Supreme Court said Monday it will take a case challenging the law. Several groups sued just before the 2010 election to try to ensure officials would not bar them from wearing tea party apparel to the polls, including buttons that read, “Please I.D. Me.” They referred to legislation that would have required voters to show identification at the polls.

READ MORE: New York City Announces First-In-The-Nation Vaccine Mandate For Private Companies

Minnesota voters in 2012 rejected a state constitutional amendment that would have required voters to show photo identification before voting.

READ MORE: Minnesota State Fair Reinstates Police Force

Lower courts upheld Minnesota’s law barring political apparel at voting places, saying it’s reasonable and applies equally to all political material regardless of viewpoint.

MORE NEWS: Sharon Gless On Book 'Apparently There Were Complaints: Cagney & Lacey 'Changed The History Of Television For Women'

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)