After nearly five decades of discrimination by the Canadian government towards LGBT public servants, Prime Minister Justin Trudeau announced the government will submit a formal apology.

From the 1950s until 1992, the government had a policy of firing or denying the promotion of LGBT people because of a fear that their orientation would lead them to being blackmailed, according to the CBC. Many were issued test by a “fruit machine,” which showed pornography that tried to prove a person was aroused by the images and could be fired.

"On November 28, the Government will offer a formal apology to LGBTQ2 Canadians in the House - for the persecution & injustices they have suffered, and to advance together on the path to equality & inclusion," Trudeau said on Twitter Sunday.

Martine Roy, a former member of the Canadian Military who was dishonorably discharged because of her orientation, said she expected an apology when the law changed in 1992, but never got one.

"It means a lot," Roy said to the CBC on the upcoming apology. "It means even more coming from [Trudeau] because I know it's going to come from his heart."

The apology comes as the government faces a class action lawsuit from over 2,000 people alleging discrimination because of their orientation, according to the CBC. Currently, both sides are negotiating to settle the suit.