The governing authority shall provide for the enforcement of this subpart by appointing the building official, who shall serve as the enforcement officer. The governing authority shall, jointly with the building official, have the right to withhold building permits. The building official or agent thereof shall also have the right to enforce the provisions hereof with the assistance of the police or sheriff in the event that any individual is in violation of this subpart.