Florida medical professionals have the right to ask patients about gun ownership, a federal appeals court ruled on Thursday.

A provision of the so-called “Docs vs. Glocks” law was struck down by the U.S. Court of Appeals for the 11th Circuit, ruling that the law was a violation of doctors’ constitutional right to free speech, according to the Miami Herald.

Do we really need the government telling doctors what they can and can’t ask patients? https://t.co/l3rAhIsNmm — Paul Stanton (@Stanton4Liberty) February 17, 2017

The Firearm Owners’ Privacy Act, backed by the National Rifle Association, was signed into law by Gov. Rick Scott in 2011. The law included restrictions on health care professionals, barring them from questioning patients or family members about firearm possession unless it was deemed medically relevant.

Thursday’s appeals court ruling overturned an earlier decision that upheld the controversial law.

Judge Jeanine Pirro disagreed with the ruling, arguing that doctors would overstep boundaries in an effort to push an anti-gun agenda.

.@JudgeJeanine: “I have a lot of guns, and it’s not my doctor’s business…Keep your stethoscope on my heart and not in my gun cabinet.” pic.twitter.com/G3E7wRkPJN — FOX Business (@FoxBusiness) February 17, 2017

“Since when is whether or not you have a gun relevant to diagnosis and treatment?” Pirro asked rhetorically on Fox Business Network’s “Varney & Co.” on Friday.

“It’s not,” she added.

Host Stuart Varney asked Pirro how the government and lawyers can prevent doctors from asking a patient about guns.

“It’s not about the doctor’s free speech. It’s about me as a patient and my free speech as to whether or not I want to tell that doctor if I have one,” Pirro said.

“I have a lot of guns, Stuart, and it’s not my doctor’s business,” she concluded. “Keep your stethoscope on my heart and not in my gun cabinet.”

Wake up right! Receive our free morning news blast HERE