Jun 30 2008
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
<bean class="org.acegisecurity.vote.RoleVoter"> <property name="rolePrefix"> <value>YOUR_CUSTOM_PREFIX</value> </property> </bean>
That’s all for today about Acegi 😉
Leave a Reply
You must be logged in to post a comment.