Nov 17th, 2005, 04:12 AM
FilterSecurityInterceptor -> objectDefinitionSource
first of all, I'm from germany, so my english isn't the best
I have a Problem with the objectDefinitionSource in my filterSecurityInterceptor:
<bean id="filterInvocationInterceptor" class="net.sf.acegisecurity.intercept.web.FilterSe curityInterceptor">
Now, I have 2 Users in my database:
user1 has the role ROLE_ADMIN and user2 ROLE_TEST
If I try to login with user1, access ist granted. Good! That's what I want. But if I login with user2, access is denied. Why? In the objectDefinitionSource, there I give both the access, ROLE_ADMIN and ROLE_TEST. If I modify the objectDefinitionSource to/in(?) /secure.jsp=ROLE_TEST,ROLE_ADMIN, then user2 has access and user1 is denied. Where is the problem?
thanks for ur help
Nov 22nd, 2005, 04:47 AM
Try using AffirmativeBased as your AccessDecisionVoter.
Nov 25th, 2005, 08:57 AM
that's it !! Thank u very much