It is quite a lapse on the airline's fault, but why on earth do you think that you deserve compensation? For the emotional distress of learning that, if you were hypothetically a terrorist, then you could have boarded a plane scot-free?

What "legal action" would you possibly take? Sheesh.