Quantities define a ceiling, not a complete permission
Adults may possess up to 25 grams away from their residence and up to 50 grams at their residence or habitual abode. The surrounding circumstances still matter, including protected places, public order and the way the material was obtained or transferred.