A Thai court on Friday granted former prime minister Thaksin Shinawatra permission to leave the country, a court statement said, a rare exception for a defendant facing royal insult charges.