jmix
jmix copied to clipboard
User obtained through CurrentAuthentication has not all attributes loaded
Try to get the current user in a service method invoked through REST Services API: you will get the user entity with only basic attributes of UserDetails loaded.
It prevents from using User attributes in security constraints and other queries through parameters like :current_user_myProp .