In light of the legalization of medical marijuana in Pennsylvania, the smell of pot can no longer serve as the sole basis for a warrantless vehicle search, the state Supreme Court ruled Wednesday. 

The decision upheld in part a ruling from the Superior Court, which determined that the odor of marijuana can still factor into a police officer’s determination of probable cause to conduct a search, but it cannot be the only factor.