Notwithstanding any provision of any general, special or local law or of any charter, whenever a municipal corporation enters into a lease of real property the lease agreement shall provide that the tenant may not assign the lease to a third party unless such assignment is approved by the municipal corporation. A municipal corporation may not arbitrarily and capriciously withhold its approval of such assignment. The provisions of this section shall not apply to the leases of real property to municipal or public corporations.
N.Y. Gen. Mun. Law § 72-P