Need refresh in order that twig condition to be seen in html -
i want display depending on user role. working need refresh page in order changes occur. think problem because of html, displayed first. how can resolve this? no need refresh in order work..?
{% include "@file" {role : app.security.token.user._access } %}
@file
<th>address</th> {% if role == 'admin' %} <th>{{'role'}}</th> {% endif %}
Comments
Post a Comment