Jun 30 2008
Acegi RoleVoter
Adding new role to Acegi secured application may be painful sometime.
Tip of the day: by default RoleVoter is only accepting roles with names starting with prefix ROLE_ (take a look on javadoc here). You easily can change this prefix while defining RoleVoter bean (this is usually configured in file WEB-INF/security.xml)
<bean class="org.acegisecurity.vote.RoleVoter"> <property name="rolePrefix"> <value>YOUR_CUSTOM_PREFIX</value> </property> </bean>
That’s all for today about Acegi