security.vote does not work for me either:

              {% if security.vote('ROLE_IS_AUTHENTICATED_FULLY') %}
                <a href="{{ path('security_logout') }}">Logout</a>
              {% else %}
                <a href="{{ path('security_login') }}">Login</a>
              {% endif %}

Yields:

Variable "security" does not exist in ::layout.twig line 12
I guess I could pass the security object explicitly in an action I call with 
render, is that what you meant?

I have turned on the anonymous feature now.


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to