Iran has barred journalists from the Cable News Network from the country , following a mistaken translation that quoted Iran 's president as saying his country has a right to build nuclear weapons .