Once a building permit is issued, the applicable building codes of any unit of local government that are in effect at the time of the issuance of the permit shall be the only building codes that apply for the duration of the building permit.
55 ILCS 5/5-6008