The local housing authority or a person interested in any premises may apply to the county court where—
and the conversion is prohibited or restricted by the provisions of the lease of the premises, or by a restrictive covenant affecting the premises, or otherwise.
The court may, after giving any person interested an opportunity of being heard, vary the terms of the lease or other instrument imposing the prohibition or restriction, subject to such conditions and upon such terms as the court may think just.