Lawyers for Donald Trump’s controversial Scottish golf course have told a court it is acceptable to photograph women urinating if you are trying to fight crime.

The defence was offered after retired social worker Rohan Beyts, a longstanding opponent of Trump International Golf Links, took legal action over staff photographing her after she got caught short on a walk close to the beach near the Aberdeenshire course in April 2016.

Ms Beyts, 62, who has told a court she suffers from bladder problems, has claimed that two police officers subsequently turned up at her home in Montrose, Angus at around 10pm in the evening, leading to her being charged for public annoyance.

The charges were dropped after she refused to accept a written warning.

But after being “shocked” and “upset” to discover from police that golf course staff had used a mobile phone to photograph her urinating, Ms Beyts took legal action of her own.

She is now demanding £3,000 in damages on the grounds that course staff had breached data protection laws by "secretly filming" her.

Her lawyer Mike Dailly told a small claims hearing at Edinburgh Sheriff Court that photographs of her urinating had been "captured unlawfully" because Trump International Golf Links was not registered under the Data Protection Act.

This, however, prompted the defence from Mr Trump’s golf course that the fight against crime would suffer “serious” adverse consequences if Sheriff Donald Corke ruled it had been wrong to photograph a woman urinating in such circumstances.

Paul Motion QC, representing the golf course, told the court that if Ms Beyts’ claim was upheld "the consequences are serious for the prevention of crime and the apprehension of offenders".

Greenkeeper Edward Irvine, 23 had told the court he had photographed Ms Beyts urinating as "evidence" of what he considered a criminal act, and, said Mr Motion, it had been "reasonable, proportionate and fair" to take such a photo if he believed a crime had been committed.

"To become liable in charges due to a technical registration default,” added Mr Motion, “Would have an adverse effect on the prevention and detection of crime."

President Donald Trump life in pictures Show all 16 1 /16 President Donald Trump life in pictures President Donald Trump life in pictures Donald Trump poses in a rocking chair once used by President John F. Kennedy at his New York City residence Reuters President Donald Trump life in pictures Developer Donald Trump with his new bride Marla Maples after their wedding at the Plaza hotel in New York Reuters President Donald Trump life in pictures Donald Trump and Celina Midelfart watch the match between Conchita Martinez and Amanda Coetzer during U.S. Open. She was the date whom Donald Trump was with when he met his current wife Melania at a party in 1996 Reuters President Donald Trump life in pictures U.S. Supreme Court Justice Clarence Thomas serving as the grand marshal for the Daytona 500, speaks to Donald Trump and Melania Knauss on the starting grid at the Daytona International Speedwa Reuters President Donald Trump life in pictures Developer Donald Trump talks with his former wife Ivana Trump during the men's final at the U.S. Open Reuters President Donald Trump life in pictures Donald Trump and his friend Melania Knauss pose for photographers as they arrive at the New York premiere of Star Wars Episode : 'The Phantom Menace,' Reuters President Donald Trump life in pictures Billionaire real estate developer Donald Trump talks with host Larry King. Trump told King that he was moving toward a possible bid for the United States presidency with the formation of a presidential exploratory committee Reuters President Donald Trump life in pictures Donald Trump answers questions as Minnesota Governor Jesse Ventura looks on in Brooklyn Park. Trump said on Friday he 'very well might' make a run for president under the Reform Party banner but had not made a final decision Reuters President Donald Trump life in pictures Billionaire Donald Trump makes a face at a friend as he sits next to Panamanian President Mireya Moscoso before the start of the 2003 Miss Universe pageant in Panama City Reuters President Donald Trump life in pictures Entrepreneur Donald Trump is greeted by a Marilyn Monroe character look-a-alike, as he arrives at Universal Studios Hollywood to attend the an open casting call for his NBC television network reality series 'The Apprentice.' Reuters President Donald Trump life in pictures Donald Trump and Simon Cowell present an Emmy during the 56th annual Primetime Emmy Awards at the Shrine Auditorium in Los Angeles Reuters President Donald Trump life in pictures Donald Trump and Megan Mullally perform at the 57th annual Primetime Emmy Awards at the Shrine Auditorium in Los Angeles Reuters President Donald Trump life in pictures Donald Trump, poses with his children, son Donald Trump, Jr., and daughters Tiffany and Ivanka Reuters President Donald Trump life in pictures Billionaire Donald Trump told Miss USA 2006 Tara Conner on Tuesday she would be given a second chance after reported misbehavior Reuters President Donald Trump life in pictures Donald Trump holds a replica of his star on the Hollywood Walk of Fame as his wife Melania holds their son Barron in Los Angeles Reuters President Donald Trump life in pictures U.S. property mogul Donald Trump stands next to a bagpiper during a media event on the sand dunes of the Menie estate, the site for Trump's proposed golf resort, near Aberdeen, north east Scotland Reuters

Sheriff Corke is due to deliver judgement on Wednesday on what is far from the only controversy to have affected the course since Mr Trump purchased the Menie estate in Balmedie in 2005 and promised to turn it into the “world’s greatest golf course”.

The ensuing disputes with neighbours became the subject of a documentary by the filmmaker Anthony Baxter, who was himself at one stage was arrested for trespassing while trying to conduct an interview.

Just before Mr Trump’s inauguration in January, David Milne, a neighbour of the course, told The Independent how in a dispute about the boundaries of his property, golf course staff had built a fence around his home – and sent him the bill.

Donald Trump at a press event at the golf course site in 2010 (Reuters)

Other neighbours have complained about the view from their property being blocked by a 15ft-high earth wall, and in 2010 Mr Trump flew to Aberdeen on his private Boeing 737 and told a packed press conference that the home of Balmedie local Michael Forbes was “a pigsty.” Mr Forbes was subsequently voted “Top Scot” in the Spirit of Scotland awards.

In the current court case, Ms Beyts has told Sheriff Corke that she had urgently needed to urinate and had thought she had done so out of sight, hidden in the sand dunes.

The court heard she had been using a recognised right of way, and had been careful to observe Scotland’s countryside access code.

Her lawyer Mr Dailly said: “It is understood under the code, once outdoors you’re allowed to relieve yourself responsibly.”

But the greenkeeper, Mr Irvine, who insisted to the court that he had only gone to the high ground at the eighth hole because of some grass that needed watering, spotted the environmental activist and golf course opponent, and photographed her.

He told the court: "I took her picture for evidence that she was urinating in a public place. I believed that it was a criminal offence to do that."

In her evidence, Ms Beyts said she was "shocked" to be told by police she had been filmed, leaving her "slightly paranoid" about urinating outside.

"I felt really quite upset,” she said, “Because I had taken all possible steps to ensure I wasn't viewed.”

Mr Motion, however, claimed that Ms Beyts’ wide publication of the events through the media and Facebook called into question whether they had caused her distress.

He said: "It seems somewhat ironic to demand compensation for a breach of privacy in such a public way.

"It may be that the true basis of the claim has been to publicise opposition to the course or possibly to stand up for the right to roam and the rights of walkers."