§ 8-511 INSPECTION OF BUILDINGS, STRUCTURES AND PREMISES.
   (a)   For the purpose of determining compliance with the provisions of this code, the public officer or his or her authorized representative is hereby authorized to make inspections to determine the condition, use and occupancy of dwellings, dwelling units, rooming units and the premises upon which the same are located. This requirement is applicable to existing dwellings or buildings.
   (b)   The public officer is not limited by the conditions in subsection (a) above where new construction or vacant premises are involved and may make such inspections at any appropriate time.
   (c)   The owner, operator and occupant of every dwelling, dwelling unit and rooming unit shall give the public officer, or his or her authorized representative, during reasonable hours, free access to such dwelling, dwelling unit and rooming unit, and its premises, for the purpose of such inspection, examination and survey after identification by proper credentials.
   (d)   Every occupant of a dwelling shall give the owner thereof, or his or her authorized agent or employee, access to any part of such dwelling, or its premises, at all reasonable times, for the purpose of making such repairs or alterations as are necessary to effect compliance with the provisions of this code or with any rule or regulation adopted and promulgated, or any order issued pursuant to the provisions of this code.