The right to marry includes the right to select one’s spouse, the U.S. Supreme Court said in its landmark same-sex marriage decision. And the right to choose your spouse applies to prison inmates too, says a federal appellate panel.

In Riker v. Lemmon, a unanimous three-judge panel of the U.S. Court of Appeals for the Seventh Circuit on Aug. 14 held that a district court was wrong when it granted summary judgment to the Indiana Department of Corrections, which had refused to allow inmate Paul Vest to marry Rebecca Riker, a former prison employee.