Despite receiving millions in public funds, private religious institutions are getting away with anti-LGBTQ discrimination.

South Bend, Indiana Mayor Pete Buttigieg could become the first out gay president in American history, but he still wouldn’t be able to land a teaching gig at his old alma mater were he to apply today.

Saint Joseph High School, in South Bend, which the candidate attended starting at age 14, has a policy against hiring teachers in same-sex relationships, and looks down upon transgender and gender non-conforming students.

Justin Sullivan/Getty Images

“The Diocese of Fort Wayne-South Bend requires our educators to adhere to Catholic teachings on the respect for the dignity of all persons and on marriage as the union of one man and one woman,” diocese spokeswoman Jennifer Simerman told HuffPost.

Simerman added that being in a same-sex relationship is “incompatible with the mission of the Catholic school educator.”

“It perfectly underscores the very difficult situation of LGBTQ people in our country right now,” said Eliza Byard, executive director of GLSEN.

Byard noted that while queer people are “part of the national community to the extent there is an out presidential candidate who is himself married,” a lack of anti-discrimination laws maintain discrimination that would prevent him from employment.

“We live in a country where in some states it’s perfectly legal to discriminate against LGBTQ people. Religiously based schools…have the legal right to refuse to hire people who are LGBTQ.”

Ethan Miller/Getty Images

While South Bend has a non-discrimination ordinance in place preventing discrimination on the basis of gender orientation and sexual orientation, it does not apply to religious institutions. However, it should be noted that the candidate’s former school, though private, has received millions in public funds as part of the state’s voucher program.

The Equality Act, which would add LGBTQ people to preexisting civil rights law, passed in the House in May, but is being blocked in the Senate. President Donald Trump has also signaled he would not sign it were it to pass both branches of Congress and land on his desk.

This month, two gay employees of Indianapolis Catholic schools have filed lawsuits against the Archdiocese of Indianapolis, claiming discrimination.

Joshua Payne-Elliott was a teacher at Cathedral High School until he was fired over fears the diocese would strip the school of its Catholic status if it did not let him go over his same-sex marriage, as it did to another institution—Brebeuf Jesuit Preparatory School—which refused to fire a gay teacher. He filed suit earlier this month.

This week he was joined by guidance counselor Lynn Starkey, who is also in a same-sex marriage and was fired by Roncalli High School after working there for nearly four decades. She too is suing, alleging discrimination and a hostile work environment.