I have Symfony 2.0.9 standard edition installed with JMSSecurityBundle. Just wondering what functions are available to me in a Twig template to deal with users?
Specifically I want check to see if a user has the role ROLE_ADMIN.
Any help?
Thanks
{% if is_granted('ROLE_ADMIN') %} ... {% endif %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With