[quote]
<!--acegi tag- -->
<bean id="viewResolver"
class="...framework.web.velocity.VelocityViewResolver">
...
<property name="attributesMap">
<map>
<entry key="authz" value-ref="authzImpl"/>
</map>
</property>
</bean>
<bean id="authzImpl" class="org.acegisecurity.taglibs.velocity.AuthzImpl" />
[/quote]
Welcome back, $!authz.principal
#if($!authz.allGranted("ROLE_MODEL","ROLE_PLAYING"))
blah blah blah blah blah
#end
[url]http://www.acegisecurity.org/acegi-security/apidocs/org/acegisecurity/taglibs/velocity/Authz.html[/url]
<!--acegi tag- -->
<bean id="viewResolver"
class="...framework.web.velocity.VelocityViewResolver">
...
<property name="attributesMap">
<map>
<entry key="authz" value-ref="authzImpl"/>
</map>
</property>
</bean>
<bean id="authzImpl" class="org.acegisecurity.taglibs.velocity.AuthzImpl" />
[/quote]
Welcome back, $!authz.principal
#if($!authz.allGranted("ROLE_MODEL","ROLE_PLAYING"))
blah blah blah blah blah
#end
[url]http://www.acegisecurity.org/acegi-security/apidocs/org/acegisecurity/taglibs/velocity/Authz.html[/url]