A Moroccan national who long served as a high-ranking diplomat to the United Nations is immune from a civil suit by a former Republican National Committee official whose trade secrets and personal information were leaked to U.S. media in a 2017 hack of his computer system, a Manhattan-based federal appeals court ruled on Friday.

A three-judge panel of the U.S. Court of Appeals for the Second Circuit said plaintiff Elliott Broidy and his Los Angeles-based investment firm had not established that the longtime Moroccan diplomat, Jamal Benomar, met the commercial activity exception under the Vienna Convention, which generally protects diplomats from civil lawsuits and criminal prosecution.