If you've got a prescription, and it's medically necessary, California law let's you take a toke. But that doesn't mean your employer can't fire you for it. Even if it happens at home off-duty and doesn't affect your job.
So holds the California Supreme Court. Justices Kennard and Moreno dissent, but Justice Werdegar's opinion gets more votes.
Something to think about the next time you have a need for doobage.