If the sentence continues somewhat like this, "At a time when freedom was deprived, inmates something-something...", I don't have a problem with it, though it would be better to say when their freedom was deprived.