Merge branch '6.1.x'

Closes gh-13596 in 6.2.x
Closes gh-13636
This commit is contained in:
Josh Cummings 2023-08-08 18:12:17 -06:00
commit 6ee4bbcc13
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