title: How do I programmatically test authorization for URLs in Spring Security?
body: <p>I'm using Spring security 3.0.5 in a JSF 2 application.</p>
  
  <p>In order to deactivate/hide entries in my navigation menu for users that are not permitted to access them, I need a way to programmatically test whether the currently logged in user is allowed to access a given URL.</p>
  
  <p>What's the easiest way to do that?</p>