Modified how to allow restore based on policies