School uses webcams on laptops to spy on pupils outside of school

Some school in america somewhere used the webcams on their school issued computers to spy on pupils while they were at home. This all came to light when they accused a kid of dealing drugs producing a picture of him at home eating some candy that looks a bit pill like.
How they ever thought this was a good idea is beyond me and how they thought bringing up their illegal survielance pictures to discipline a kid was a good move is even more moronic. The family are now bringing a class action lawsuit against the school.