title: How can I check other users or role permissions in the template? symfony2
body: <p>I'm building this user manager, where admins can change permission of a group or user. I don't want to use the FOS user bundle, because I want to customize alot.</p>
  
  <p>I found out I can give permissions to another user in the controller, but how can I read the permissions of another user/role? And is it possible to read these permissions of another user/role in the template?</p>
  
  <p>The Ideal way I would like to do this is: 
  (a page to view users in a group and the permissons)</p>
  
  <p>1 Get all objects and users in the controller</p>
  
  <p>2 Print the users and objects in the template. Next to the objects, print the permissions this group has: VIEW EDIT DELETE OWNER..</p>
  
  <p>And the same for a user(not the current), I want to be able to check the permission of a user(not the current) in the template. On a given object/class..</p>
  
  <p>I know how to check if a user has a role/group, but I want to know what permissions the group/user has, like EDIT VIEW DELETE etc. with ACL.</p>
  
  <p>How can I achieve this ?</p>