building permit or its functional equivalent — Legal Definition, Examples & Cases