18. For the owner, lessee, sublessee, licensed real estate broker, assignee, or managing agent of publicly assisted or multiple dwelling or contiguously located housing accommodations or other covered housing accommodations, or other person having the right of ownership or possession, or right to rent or lease, or sell or negotiate for the sale of such accommodations, or any agent or employee of such person or any organization of unit owners in a condominium or housing cooperative to sexually harass any tenant, prospective tenant, purchaser or prospective purchaser of property.
Notwithstanding the foregoing provisions of this section, it shall not be an unlawful employment practice for any person, employer, labor organization or employment agency to inquire of an applicant for employment or membership as to whether or not he or she is a veteran or a citizen.
Notwithstanding the provisions of any general or special law nothing herein shall be construed to bar any religious or denominational institution or organization, or any organization operated for charitable or educational purposes, which is operated, supervised or controlled by or in connection with a religious organization, from limiting admission to or giving preference to persons of the same religion or denomination or from taking any action with respect to matters of employment, discipline, faith, internal organization, or ecclesiastical rule, custom, or law which are calculated by such organization to promote the religious principles for which it is established or maintained.