The full U.S. Court of Appeals for the Eleventh Circuit ruled Thursday that a Florida law barring doctors from asking patients whether they have guns in their homes violates the First Amendment.

In a 90-page decision released Thursday in the case known as “Docs v. Glocks,” the court ruled in favor of the doctors who challenged the law, saying it interfered with their ability to offer guidance on safe gun storage, particularly for parents of young children. The decision includes two majority opinions written by Judges Adalberto Jordan and Stanley Marcus and a dissent from Judge Gerald Tjoflat.