From 9edbac7233304274fc6a2973eec91204b458a518 Mon Sep 17 00:00:00 2001 From: Nikita Eshkeev Date: Mon, 24 Apr 2023 00:13:09 +0300 Subject: [PATCH] Update architecture.adoc `RoleHierarchy` doesn't have the `setHierarchy` method, so the snippet doesn't work as is. The method is declared inside `RoleHierarchyImpl` --- docs/modules/ROOT/pages/servlet/authorization/architecture.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc b/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc index 21ed36a50a..5eaf5b1e85 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc @@ -197,7 +197,7 @@ A typical configuration might look like this: ---- @Bean static RoleHierarchy roleHierarchy() { - RoleHierarchy hierarchy = new RoleHierarchyImpl(); + var hierarchy = new RoleHierarchyImpl(); hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" + "ROLE_STAFF > ROLE_USER\n" + "ROLE_USER > ROLE_GUEST");