Skip to content

Commit

Permalink
override listReadablesDb
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceboizet committed Oct 10, 2024
1 parent d3e7f99 commit 06fb58a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/fr/cirad/tools/security/TokenManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public Collection<String> listReadableDBs(Collection<? extends GrantedAuthority>
*
* @return List<String> readable modules
*/
@Override
public Collection<String> listReadableDBs(String token) {
Authentication authentication = getAuthenticationFromToken(token);
Collection<String> authorizedModules = listReadableDBs(authentication == null ? null : userDao.getUserAuthorities(authentication));
Expand Down

0 comments on commit 06fb58a

Please sign in to comment.