South Africa’s top court unanimously legalized the private use of cannabis on Tuesday, upholding a lower court’s decision ruling that it was “unconstitutional and therefore invalid” to criminalize the drug, BBC reports. The decision allows adults to consume cannabis in private and grow marijuana for private consumption. “It will not be a criminal offense for an adult person to use or be in possession of cannabis in private for his or her personal consumption,” Deputy Chief Justice Raymond Zondo wrote in his judgment. The court has given parliament 24 months to adopt the ruling, which is binding.