LONDON (AP) — A British woman who was photographed urinating on a golf course in Scotland founded by U.S. President Donald Trump lost her demand for damages on Wednesday but said she was “very relieved” that her name had been cleared.

Carol Rohan Beyts, 62, a longtime campaigner against the course in northeast Scotland, said staff breached data protection laws by secretly taking pictures of her in April 2016.

Beyts, who says she has bladder problems and had no choice but to urinate in a sand dune, sought 3,000 pounds ($3,700) in damages from Trump International Golf Links Scotland.

The firm said staff members were collecting evidence of a criminal act.

A judge at Edinburgh Sheriff Court said Beyts shouldn’t have been filmed but declined to award damages, saying her distress was not caused by the company’s failure to register under the Data Protection Act.

The judge, Donald Corke, warned that people “taking pictures of females urinating in the countryside put themselves at real risk of prosecution under public order or voyeurism.”

After the ruling, Beyts said she was “very relieved.”

“I was only interested in clearing my name when the Trump organization representative spoke of me committing a deliberate and shameful act within a few hundred feet of the clubhouse in full view of staff and guests,” she said.

Trump International Golf Links said it was “satisfied that justice has prevailed,” accusing Beyts of seeking publicity.

“We are a fully operational golf and leisure resort, with public restrooms,” the resort said in a statement. “Had her intentions been honorable she would have used the facilities available to her.”