What do you do when someone enters your property and gets attacked by your dog?

has entered with permission or without permission ?