The shooter was dishonorably discharged from the military. He was not legally allowed to possess a weapon. Would another law have worked??
Let me add, that he had a picture of an AR as his FB cover photo. Had the NSA done their job with all of their data collection, they should have known he was a felon in possession. The NSA dropped the ball, again. See how giving up those rights keep you safe!!!