Selling a home without building permits

Here in Canada the buyer should get the home inspected and if any issues come up the buyer can go to his City hall and say I would like to have all permits of work done on the said house to see that they pased inspection.If work was done and not paeesd all work can be removed.So If your friends work is top notch have an inspector come out and pass the work.In the end that seller may have a hard time selling,or sell it as is,buyer beware.