Amazon is facing a disability discrimination lawsuit from a New Jersey warehouse worker who was fired for using medical marijuana.

The lawsuit, by a plaintiff identified as D.J.C., was filed in Middlesex County Superior Court in October and removed to federal court Friday. The Amazon filing comes just as the state Supreme Court is poised to take up the issue of medical marijuana in the workplace.

The justices announced in June that they will hear an appeal concerning the obligation of employers to accommodate medical marijuana use. The plaintiff in that case, a fired funeral home director, has asked the court to overturn a ruling finding employers are not obligated to accommodate medical marijuana usage.