Skip to content

Commit 6ee4bbc

Browse files
committed
Merge branch '6.1.x'
Closes gh-13596 in 6.2.x Closes gh-13636
2 parents a29f90b + 8368c23 commit 6ee4bbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,11 @@ Java::
253253
----
254254
@Bean
255255
static RoleHierarchy roleHierarchy() {
256-
var hierarchy = new RoleHierarchyImpl();
256+
RoleHierarchyImpl hierarchy = new RoleHierarchyImpl();
257257
hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
258258
"ROLE_STAFF > ROLE_USER\n" +
259259
"ROLE_USER > ROLE_GUEST");
260+
return hierarchy;
260261
}
261262
262263
// and, if using method security also add

0 commit comments

Comments
 (0)