浏览代码

Merge branch '6.0.x'

Closes gh-12784
Josh Cummings 2 年之前
父节点
当前提交
be2958ed13
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

+ 5 - 0
docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

@@ -234,6 +234,11 @@ static MethodSecurityExpressionHandler methodSecurityExpressionHandler(RoleHiera
 ----
 ====
 
+[NOTE]
+`RoleHierarchy` bean configuration is not yet ported over to `@EnableMethodSecurity`.
+As such this example is using `AccessDecisionVoter`.
+If you need `RoleHierarchy` support for method security, please continue using `@EnableGlobalMethodSecurity` until https://github.com/spring-projects/spring-security/issues/12783 is complete.
+
 Here we have four roles in a hierarchy `ROLE_ADMIN => ROLE_STAFF => ROLE_USER => ROLE_GUEST`.
 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`.
 The `>` symbol can be thought of as meaning "includes".