Click photo to enlarge
Turkish President Abdullah Gul, right, and his Turkmen counterpart Gurbanguli Berdymukhamedov pose for cameras during a ceremony in Ankara, Turkey, Tuesday, June 3, 2014. Berdymukhamedov is in Turkey for a four-day state visit.(AP Photo/Burhan Ozbilici)

ISTANBUL (AP) — Turkish authorities say they have restored access to YouTube five days after the country's highest court ruled that the two-month ban on the video-sharing website violates freedom of expression.

Turkish news reports said that the court's decision was delivered to the country's telecommunications regulator Tuesday. YouTube became accessible later in the day.

The restrictions on YouTube were imposed in late March after the leak of an audio recording of a government security meeting. In the recording, senior officials appeared to be discussing a possible military intervention in Syria.

A lawyer representing YouTube, the Turkish Bar Association and legislators from Turkey's main opposition party appealed to the high court, seeking to overturn the ban that they said was unconstitutional.

Turkey also blocked access to Twitter in March — hours after Erdogan threatened to "rip out the roots" of the micro-blogging site. But early last month, the high court also ordered Turkish authorities to end the ban on Twitter.

The moves by Turkish authorities to block the social media networks have provoked widespread criticism by Western governments and human rights organizations.

Following the Twitter ruling, Erdogan said his government would comply, even though it did not respect the decision.

Many tech-savvy users, including Erdogan ally President Abdullah Gul, found ways to circumvent the bans both on Twitter and YouTube while they were in place.