112.5. No building permit, subdivision permit, certificate of authorization or certificate of occupancy may be issued pursuant to a by-law of a municipality in respect of an activity that is prohibited or that is authorized, under any of sections 112 to 112.2, upon issuance of a permit or a certificate, unless in the latter case the activity was so authorized.