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
|
@Bean
|
||||||
static RoleHierarchy roleHierarchy() {
|
static RoleHierarchy roleHierarchy() {
|
||||||
var hierarchy = new RoleHierarchyImpl();
|
RoleHierarchyImpl hierarchy = new RoleHierarchyImpl();
|
||||||
hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
|
hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
|
||||||
"ROLE_STAFF > ROLE_USER\n" +
|
"ROLE_STAFF > ROLE_USER\n" +
|
||||||
"ROLE_USER > ROLE_GUEST");
|
"ROLE_USER > ROLE_GUEST");
|
||||||
|
return hierarchy;
|
||||||
}
|
}
|
||||||
|
|
||||||
// and, if using method security also add
|
// and, if using method security also add
|
||||||
|
|
Loading…
Reference in New Issue