Boyle will be allowed to visit Ottawa with one of his parents only to see a doctor, consult his lawyers or to attend court. He must continue receiving psychiatric treatment and cannot possess a weapon or use the internet.

Boyle and his American wife, Caitlan Coleman, were taken hostage in 2012 by a Taliban-linked group while on a backpacking trip in Afghanistan.

The couple — along with the three children they had during five years in captivity — were freed by Pakistani forces last October.

Boyle was arrested by Ottawa police in December and charged with offences including assault, sexual assault, unlawful confinement and causing someone to take a noxious substance.

The charges against Boyle relate to two alleged victims, but a court order prohibits the publication of any details that might identify them or any witnesses.

None of the charges, which relate to incidents that allegedly occurred after Boyle returned to Canada, has been tested in court. A trial date is slated to be set on June 15, when Boyle is due back in court.

Evidence from the bail proceeding and Wadden's reasons, delivered from the bench on Friday, are also covered by a publication ban.

Boyle, his wife and children had been living in an Ottawa apartment when he was arrested.

An initial evaluation found him fit to stand trial, but he underwent a fuller assessment at a mental health centre in Brockville, Ont. The confidential psychiatric assessment was completed this spring.

Who is Joshua Boyle?

Boyle attended high school in Kitchener, Ont., and earned a degree from the University of Waterloo in 2005.

He was briefly married to Zaynab Khadr, sister of Toronto-born Omar Khadr, who spent years in a U.S. prison at Guantanamo Bay, Cuba, after being captured in Afghanistan.

In 2011 Boyle married Coleman, who was raised in Pennsylvania, during a lengthy trip the pair took to South America.

The following year, they set off for Russia and travelled through Central Asia for several months, winding up in Afghanistan.

The family's dramatic rescue last October made global headlines, and even led to a meeting on Parliament Hill with Prime Minister Justin Trudeau.