JMIX 1.4 regression on method getAuthorities of UserDetails

Hi,
I’m using the method getAuthorities of class UserDetails for checking, but since version 1.4 of JMIX getAuthorities return nothing…

public boolean hasRole(UserDetails user, String codeRole){
        return user.getAuthorities().stream().map(auth -> auth.getAuthority()).collect(Collectors.toList()).contains(codeRole);
    }

Hi,
Thank you for reporting the problem. It is caused by these changes.

I’ve created an issue.

You can set the following application property to return to previous system behavior:

jmix.core.current-authentication-user-reload-enabled=false