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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -