spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.52k stars 598 forks source link

Documentation quote "hasPermission" expression but it seems impossible to use it #1086

Open weswes opened 1 year ago

weswes commented 1 year ago

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 ?