"Not easily, and not without the risk of harming the liberties of Equestria's citizens. I doubt Celestia would ever agree to anything like that. What should have happened though, is that everypony coming into the castle should have been searched, but again, a pony with the right passes to get in the Equis offices would probably have been let off."