Police officers are not required to abandon a search pursuant to a warrant for marijuana when the resident of the premises produces a physicians permission to possess that marijuana under the Compassionate Use Act of 1996 (Health & Saf. Code, sec. 11362.5). The court rejected the argument that the police should have secured the premises and informed the court of this fact and sought further instruction. The statutory exception is an affirmative defense to be proven at trial.