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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -