SEC-1583: wrong info in Docs #1776

Closed
spring-issuemaster opened this Issue Oct 4, 2010 · 1 comment

1 participant

@spring-issuemaster

NoName (Migrated from SEC-1583) said:

from Docs http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html

@PreAuthorize("hasAuthority('ROLE_TELLER')")

but "hasAuthority" is wrong. work around is to use "hasRole" instead.

also is not working.

java.lang.IllegalArgumentException: Failed to evaluate expression 'IS_AUTHENTICATED_ANONYMOUSLY'

work around is to use:

@spring-issuemaster

Luke Taylor said:

I've added support for hasAuthority() and hasAnyAuthority() expressions to SecurityExpressionRoot.

@spring-issuemaster spring-issuemaster added this to the 3.1.0.M2 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment