The poor door has been slammed shut.

Developers hoping to get tax breaks for building affordable housing in or near luxury buildings can no longer install a "poor door" to separate low-income tenants from those who pay market rates.

The New York state ban was passed Thursday as part of legislation that renewed the state's 421-a tax break program, Governor Andrew Cuomo's office confirmed to CNNMoney on Tuesday.

Related: 88,000 apply to get in this 'poor door'

The ban will not affect existing housing but will impact construction of new luxury buildings.

The "poor doors" installed in high-end buildings were previously allowed under a program created in 2009 by former New York City Mayor Michael Bloomberg.

Mayor Bill de Blasio proposed banning poor doors in May as part of his proposal for the renewal of the tax-break program.

"Changes Mayor de Blasio just secured to the 421a program in Albany will mean that in the future, so-called 'poor doors' will be banned, more affordable housing will be built on-site and buildings will more fully integrate tenants," said Deputy Mayor Alicia Glen said in a statement.

For those who have been outspoken proponents of eliminating the "poor doors," the ban is a victory.

The ban is "what we've all been clamoring for," Manhattan Borough President Gale Brewer told CNNMoney.