From 8368c234a55411de4b2e4ffe2e0b2ae32d2cd705 Mon Sep 17 00:00:00 2001 From: galmegiz Date: Sat, 29 Jul 2023 00:00:11 +0900 Subject: [PATCH] Add Missing Return Statement in Snippet Closes gh-13596 Closes gh-13595 --- .../modules/ROOT/pages/servlet/authorization/architecture.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc b/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc index 382f6f9098f..adda11bb476 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/architecture.adoc @@ -253,10 +253,11 @@ Java:: ---- @Bean static RoleHierarchy roleHierarchy() { - var hierarchy = new RoleHierarchyImpl(); + RoleHierarchyImpl hierarchy = new RoleHierarchyImpl(); hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" + "ROLE_STAFF > ROLE_USER\n" + "ROLE_USER > ROLE_GUEST"); + return hierarchy; } // and, if using method security also add