Colorado's Supreme Court has ruled that a medical marijuana patient who was fired after failing a drug test cannot get his job back.

The case has big implications for employers and pot smokers in states that have legalized medical or recreational marijuana. Colorado became the first state to legalize recreational pot in 2012.

Though the Colorado case involves medical marijuana, the court's decision could also affect how companies treat employees who use the drug recreationally.

Brandon Coats is a quadriplegic who was fired by Dish Network after failing a drug test in 2010. The company agreed that Coats wasn't high on the job but said it has a zero-tolerance drug policy.

Courts in California, Montana and Washington state also ruled against medical marijuana patients fired for pot use.