PORTLAND, Ore. – An employer is not required to accommodate the use of medical marijuana, the Oregon Supreme Court ruled Thursday in a case that cost a worker his job, saying state law is trumped by federal law that classifies pot as an illegal drug.

The court overturned a state Bureau of Labor and Industries decision in favor of a worker in Eugene who was fired after telling his boss he was using medical marijuana approved by his doctor before taking a drug test.

Anthony Scevers filed a discrimination claim against Emerald Steel Fabricators Inc., arguing the company failed to make a reasonable accommodation for a disability.

But the majority, in an opinion by Justice Rives Kistler, supported the company’s argument that “state law does not require an employer to accommodate an employee’s use of marijuana” .

It added that “the federal Controlled Substances Act prohibits the possession of marijuana without regard to whether it is used for medicinal purposes.”

The ruling was praised by Associated Oregon Industries, the state’s largest business lobby, which wrote a friend of the court brief supporting Emerald Steel.

But Brad Avakian, chief of the state Bureau of Labor and Industries, said the ruling “seriously undercuts” the Oregon medical marijuana program. The court noted that its ruling did not affect the way Oregon law protects medical marijuana from any state criminal liability.