How to check if another user of me can access on this current page
<p>In my app I want to check if another user of the app can access a specific route.</p>

<p>How to use the security compoment of Symfony to load the target user context and check the right as if the user call the URL ?</p>

<p>EDIT :</p>

<p>I known the documentation of Symfony2. But all oriented for current logged user. But in my case, I'm an admin and I want share the current page with another admin.</p>

<p>Before send the share email, I want check if the another admin can read the shared page. </p>