Prisoner allowed to challenge his prison conditions