title: role hierarchy inheritance - Symfony2
body: <p>I've problem with my hierarchical role in <em>security.yml</em></p>
  
  <h3>role_hierarchy</h3>
  
  <pre><code>    ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
      ROLE_ADMIN: [ROLE_PILOT, ROLE_EXPERT]
      ROLE_PILOT: ROLE_PRODIVER
      ROLE_PROVIDER: ROLE_PROVIDER_EXTERNAL
      ROLE_PROVIDER_EXTERNAL: ROLE_USER
  </code></pre>
  
  <p>When i'm using *is_granted* in TWIG  : </p>
  
  <pre><code>{% if is_granted('ROLE_PROVIDER_EXTERNAL') %}
   &lt;li class="dropdown"&gt;[...]&lt;/li&gt;
  {% endif %}
  </code></pre>
  
  <p>Normally the ROLE_PILOT should be able to view this HTML element with the inheritance of roles. But if user is connected in ROLE_PILOT, HTML element cannot display for him...</p>
  
  <p>Anyone have an idea for my problem ?<br/>
  Thx</p>