Skip to content

Commit be2958e

Browse files
committed
Merge branch '6.0.x'
Closes gh-12784
2 parents eac1f84 + 109f6e7 commit be2958e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ static MethodSecurityExpressionHandler methodSecurityExpressionHandler(RoleHiera
234234
----
235235
====
236236

237+
[NOTE]
238+
`RoleHierarchy` bean configuration is not yet ported over to `@EnableMethodSecurity`.
239+
As such this example is using `AccessDecisionVoter`.
240+
If you need `RoleHierarchy` support for method security, please continue using `@EnableGlobalMethodSecurity` until https://github.com/spring-projects/spring-security/issues/12783 is complete.
241+
237242
Here we have four roles in a hierarchy `ROLE_ADMIN => ROLE_STAFF => ROLE_USER => ROLE_GUEST`.
238243
A user who is authenticated with `ROLE_ADMIN`, will behave as if they have all four roles when security constraints are evaluated against an `AuthorizationManager` adapted to call the above `RoleHierarchyVoter`.
239244
The `>` symbol can be thought of as meaning "includes".

0 commit comments

Comments
 (0)