Add Missing Return Statement in Snippet

Closes gh-13596
Closes gh-13595
This commit is contained in:
galmegiz 2023-07-29 00:00:11 +09:00 committed by Josh Cummings
parent 3edbdc6e87
commit 8368c234a5
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 2 additions and 1 deletions

View File

@ -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