Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if user has role twig

{% if is_granted('ROLE_ADMIN') %} ... {% endif %}
 
PREVIOUS NEXT
Tagged: #check #user #role #twig
ADD COMMENT
Topic
Name
1+4 =