Merge branch '6.1.x'
Closes gh-13596 in 6.2.x Closes gh-13636
This commit is contained in:
commit
6ee4bbcc13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue