A judge in Texas County, Missouri, jailed two grandparents and their son-in-law and forced them to take drug tests, according to an ACLU lawsuit filed Monday . Moreover, an ankle cuff that jail staff placed on the son-in-law, who is diabetic, led to the amputation of part of his foot, the suit says.

The lawsuit, filed in U.S. District Court for the Western District of Missouri in Springfield, says that Texas County Associate Judge Douglas Gaston was angered by the responses he got from Norma and Arthur Rogers in court. The Rogers were attending a hearing on the custody of their granddaughter on June 20, 2017; they were prepared to offer to take care of her. The other set of grandparents were claiming that the granddaughter’s parents were unfit to care for her, the suit says.

The Rogers’ son-in-law, William Hale, was also in court, the ACLU says. None of the three had a lawyer. During the hearing, Gaston threatened Arthur Rogers with a penalty of “a cell with bars” if he interrupted again. Gaston then ordered a full hearing for July, suggesting the Rogers get a lawyer, according to the suit.