the building had previously been altered from a four-unit apartment complex into a single-family residence without proper permits
Then the realtor is on the hook.