hasPermission(Object target, Object permission) Returns true if the user has access to the provided target for the given permission — for example, hasPermission(domainObject, 'read').
It not clear wich object is sent or can be sent as target.
Is it sure that it's possible to use this functionnality as usually ?
In https://docs.spring.io/spring-statemachine/docs/current/reference/#generic-expression-usage
hasPermission(Object target, Object permission) Returns true if the user has access to the provided target for the given permission — for example, hasPermission(domainObject, 'read').
It not clear wich object is sent or can be sent as target. Is it sure that it's possible to use this functionnality as usually ?