Skip to content

Commit

Permalink
Update architecture.adoc
Browse files Browse the repository at this point in the history
`RoleHierarchy` doesn't have the `setHierarchy` method, so the snippet doesn't work as is. The method is declared inside `RoleHierarchyImpl`
  • Loading branch information
neshkeev authored and jzheaux committed Apr 24, 2023
1 parent 2fed213 commit 9edbac7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ A typical configuration might look like this:
----
@Bean
static RoleHierarchy roleHierarchy() {
RoleHierarchy hierarchy = new RoleHierarchyImpl();
var hierarchy = new RoleHierarchyImpl();
hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
"ROLE_STAFF > ROLE_USER\n" +
"ROLE_USER > ROLE_GUEST");
Expand Down

0 comments on commit 9edbac7

Please sign in to comment.