Answers for "check if user has role twig"

PHP
0

check if user has role twig

{% if is_granted('ROLE_ADMIN') %} ... {% endif %}
Posted by: Guest on March-11-2020
0

check twig if user has role

{% if is_granted('ROLE_ADMIN') %}
    <a href="...">Delete</a>
{% endif %}
Posted by: Guest on February-05-2021

Code answers related to "check if user has role twig"

Browse Popular Code Answers by Language