Skip to content

Commit

Permalink
Add Missing Return Statement in Snippet
Browse files Browse the repository at this point in the history
Closes gh-13596
Closes gh-13595
  • Loading branch information
galmegiz authored and jzheaux committed Aug 9, 2023
1 parent 3edbdc6 commit 8368c23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8368c23

Please sign in to comment.