Replies: 1 comment 1 reply
-
Couldn't you solve this with a custom transition class? Adding permission support seems out of the scope for this package. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Guys
First of all, awesome lib! May I ask if it has already been considered putting authorization checks inside the
transitionTo
Method? I would love to set an Attribute on a transition in order to mark it as "restricted". ThetransitionTo
method could then verify if such an Attribute exists. If yes, do the necesseray checks:The authorization check might look like this:
What do you think? Would you be open for a PR?
thanks
Beta Was this translation helpful? Give feedback.
All reactions