I want to define access for some pages for user who has one of following roles (ROLE1 or ROLE2)
I\'m trying to configure this in my spring security xml file as following
The problem was that I configured custom access-decision-manager-ref="accessDecisionManager" and didn't pass one of the voters.
access-decision-manager-ref="accessDecisionManager"
Solved by adding org.springframework.security.web.access.expression.WebExpressionVoter to accessDecisionManager bean.
org.springframework.security.web.access.expression.WebExpressionVoter
accessDecisionManager