If this was not an "as is" sale but rather included an inspection contingency or clause in the contract of sale, then the seller's refusal to allow the contractually guaranteed inspection is a material, or important, breach of contract and will allow the buyer to terminate the contract without penalty and get his/her deposit back.If the sale was "as is" so there was no right to an inspection in the contract but it was just a courtesy that the seller was allowing the inspection, then the contract was not breached or violated and the refusal to allow an inspection does not allow the buyer to terminate the contract. The buyer could potentially sue the seller later for the money he or she paid for an inspection he or she could not conduct.