(CNN) Just two weeks ago, LGBTQ students at Brigham Young University were cheering after the school deleted a section in its honor code that banned "homosexual behavior." But on Wednesday, the Church of Jesus Christ of Latter-day Saints poured cold water on their celebrations after it clarified that same-sex romantic behavior is still "not compatible" with BYU's principles.

The announcement came in a letter penned by Elder Paul V. Johnson, the commissioner of the church's educational system. It was sent to all the students and employees at Mormon-owned schools, according to BYU, which tweeted out the letter.

"The moral standards of the Church did not change with the recent release of the General Handbook or the updated Honor Code," Johnson wrote. "Same-sex behavior cannot lead to eternal marriage and is therefore not compatible with the principles included in the Honor Code."

Today this letter from Elder Paul V. Johnson, Commissioner of the Church Educational System, regarding the updated Honor Code was sent to students and employees at all CES schools. pic.twitter.com/sADljd8lQT — BYU (@BYU) March 4, 2020

The code had previously prohibited "all forms of physical intimacy that gives expression to homosexual feelings." If same-sex couples were seen hugging, holding hands, kissing or dating in public, they'd risk an investigation by the feared Honor Code Office, as well as punishment at their church or expulsion from school.

Students had long protested the code's "homosexual behavior" policy so when it was deleted last month, they claimed it as a victory.