WORTHINGTON, Minn. (AP) — The Minnesota Court of Appeals says the Nobles County Sheriff’s Office can’t keep jail inmates in custody for immigration officials after those inmates are eligible for release in state cases.

Monday’s ruling comes in a class-action lawsuit filed by the American Civil Liberties Union of Minnesota.

READ MORE: Colorado Man Dies In Becker County Crash

The ACLU argued that the sheriff’s office routinely violated the rights of jail inmates by transferring them from local to federal custody at the request of U.S. Immigration and Customs Enforcement.

READ MORE: Leech Lake Residents Work To Revive Ojibwe Spiritual Traditions, One Pet At A Time

An attorney for Nobles County told Minnesota Public Radio News that the decision isn’t want the county wanted, but provides guidance on how to deal with similar situations going forward.

ICE “detainers” request that local officials hold individuals in jail until federal officers pick them up. Some counties, including Hennepin County, have stopped honoring such requests.

MORE NEWS: 6-Year-Old Boy Run Over By Trailer At Tree Farm, Suffers Injuries

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