Updated

A correspondent for The New York Times who had been ordered to leave Afghanistan over a story he wrote has now been allowed to return.

An adviser to the newly inaugurated president of Afghanistan says the country's attorney general has been told to allow Matthew Rosenberg back. In a Facebook message to The Associated Press, Rosenberg confirmed he will be permitted to return to Afghanistan.

Rosenberg was told in August by the previous Afghan administration that he had to leave and could not return. The expulsion was over a story about a group of officials considering seizing power over the then-unresolved presidential election. Rosenberg refused to reveal his sources, and officials accused the piece of threatening the country's stability.

The Times had no immediate comment.