Alberta’s Court of Appeal has struck down a plan by energy company Suncor to randomly test thousands of workers for drugs and alcohol.

The court said in the decision that the plan would seriously breach workers’ rights.

The Alberta Federation of Labour calls the decision a big victory, saying that random testing doesn’t always improve safety.

There is no information on whether or not Suncor will try to go the Supreme Court to appeal the ruling.