Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Oct 5, 2023
1 parent 325fe3b commit 0ea75c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ public List<GrantedAuthority> getAuthoritiesByUser(User user) {
return list;
}


/*private static List<GrantedAuthority> getAuthorities(User user) {
return user.getRoles().stream().map(role -> new SimpleGrantedAuthority("ROLE_" + role))
.collect(Collectors.toList());
}*/

// Per com'è fatto, c'è solo un elemento Authority (User può essere solo uno tra Subject, Controller e DPO)
// springframework...User però vuole una lista
private static List<GrantedAuthority> getAuthorities(User user) {
Expand Down

0 comments on commit 0ea75c8

Please sign in to comment.