In a ruling issued this week, Ontario Superior Court Justice Paul Perell says the Correctional Service of Canada violated the charter rights of thousands of inmates who filed a class-action lawsuit against the agency over its use of administrative segregation.