We had a time with one of our local code people over a upright freezer we had in the carport. They kept leaving us notices that we had to take the door off. We pointed out that the rest of the code stated that being locked (which it was) was another option.
Finally told the city that we were going to sue them for harassment if they didn't stop. They stopped.
Such laws and codes are antiquated anyway. It's been something like 50 years since refrigerators and freezers were made with latching doors that couldn't be opened from the inside.