It turns out that smoking weed legally for medical purposes can still be illegal.

Washington states Supreme Court upheld a Colorado companys decision to fire a woman for failing a required drug test due to pot use, even though she had a valid medical marijuana prescription, the Seattle Times reported.

The employee  who sued under the pseudonym Jane Roe  worked for TeleTech Customer Care and was fired in October of 2006 after a week of training. TeleTech, which performs the customer service for Sprint, had a contract with the telecommunications company that required drug testing of all employees, with no exception for medical marijuana use.

The 8-1 decision issued Thursday declared that the state medical marijuana law did not necessarily require employers to accommodate use of the drug outside the work environment; although the law allows employers to ban on-site use of the drug, it remains tacit about regulating the drugs use in other contexts.

The court also ruled that the states Human Rights Commission, which handles employee discrimination cases, cannot look into claims involving medical marijuana use because it is still illegal at the federal level.