A federal appeals court gave CNN’s Brian Karem a temporary legal victory Friday, upholding a lower court injunction ordering the White House to restore his press pass on due process grounds.

The Playboy senior White House reporter and CNN political analyst sued after the White House press office suspended his hard pass, following after an altercation with former White House aide Sebastian Gorka during a conservative social media summit in the Rose Garden last year.

PLAYBOY REPORTER BRIAN KAREM SAYS HE'LL SUE OVER SUSPENSION OF WHITE HOUSE CREDENTIALS

“Karem filed this suit to enjoin enforcement of the suspension, arguing that it violated the First and Fifth Amendments. The district court found Karem’s Fifth Amendment due process claim likely to succeed on the merits and preliminarily enjoined the suspension. With one minor adjustment to the injunction’s scope, we now affirm. Karem is likely to succeed on his due process claim because, on this record, he lacked fair notice that the White House might punish his purportedly unprofessional conduct by suspending his hard pass for a month,” the ruling stated.

The case will continue to be litigated, but Karem’s hard pass can be restored for now, and he’s allowed to attend events at the White House.

TRUMP SLAMS CNN ANALYST, PLAYBOY REPORTER BRIAN KAREM AT BRIEFING: 'LOUDMOUTH'

Karem had grown notorious for heated confrontations with President Trump and members of his administration. He and Gorka got into a shouting match that was captured on video after Karem described the summit participants as a “group of people that are eager for demonic possession."

WASHINGTON, DC - JULY 11: Brian Karem of Playboy Magazine argues with conservative military and intelligence analyst and former deputy assistant to President Donald Trump Sebastian Gorka (not pictured) after the President made a Rose Garden statement on the census July 11, 2019 at the White House in Washington, DC. (Photo by Alex Wong/Getty Images)

WASHINGTON, DC - JULY 11: Brian Karem of Playboy Magazine argues with conservative military and intelligence analyst and former deputy assistant to President Donald Trump Sebastian Gorka (not pictured) after the President made a Rose Garden statement on the census July 11, 2019 at the White House in Washington, DC. (Photo by Alex Wong/Getty Images)

After a bit of back and forth, Gorka shouted at Karem, “You're a punk, you're not a journalist, you're a punk.” Karem then told Gorka to “get a job.”

At one point, Karem suggested they take their conversation “outside,” although they were already in the Rose Garden.

Earlier this year, Trump called Karem a “loudmouth” during a coronavirus press briefing in the Rose Garden.

CLICK HERE TO GET THE FOX NEWS APP

"I told them when they put this guy here, it's nothing but trouble," Trump said about Karem. "He's a showboat. If you keep talking, I'll leave and you can have it out with the rest of these people. If you keep talking, I'm going to leave and you can have it out with them."

Back in 2018, the White House took away the credentials of Jim Acosta, CNN's chief White House correspondent, after a contentious exchange with President Trump in which the White House claimed Acosta had placed his hands on a female intern while trying to hold on to his microphone. CNN sued, and nine days later a judge ordered his credentials restored.

Fox News’ Bill Mears and Brie Stimson contributed to this report.