title: Symfony voter: how do I check a user's role?
body: <p>I have Posts that are owned by a specific user. I've created a voter to check if the user owns the Post, but I also want admins (ie, ROLE_ADMIN and above) to be able to access all Posts.</p>
  
  <p>I've followed the instructions (and nearly copied the code) on the <a href="http://symfony.com/doc/current/cookbook/security/voters.html" rel="nofollow">How to Use Voters to Check User Permissions</a> cookbook entry. Now I'm wondering how I do the check. Ideas:</p>
  
  <ol>
  <li>Pass another service into the Voter...not sure which one.</li>
  <li>Do something with the <code>vote</code> method.</li>
  <li>Don't do the check in the voter, but do it inside the controller (ie, don't call the voter check if they're an admin).</li>
  </ol>