As with many things, the degree matters. It is both an imposition on your liberty to require identification when boarding an airplane and an imposition on your liberty to ban everyone from flying altogether. But one clearly restricts your liberty more than another. I think when choosing between different solutions to a problem, choosing the one that limits your freedom the least is a reasonable rule of thumb.