Custom actions #780
-
First, is there any statically typed list of actions exported by CASL? I couldn't find anything on the documentation, and it seems to be implicit that the list of actions is as follows: type Actions = 'create' | 'read' | 'update' | 'delete' | 'manage'; Second, am I able to create my own actions? The specific use case I am thinking of is to use the verb "remove" instead of "delete". I have some pre-existing automation & code inference that I am integrating with, so this is not simply a matter of preference. Again, couldn't find anything in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
First: No. |
Beta Was this translation helpful? Give feedback.
First: No.
Second: Yes. You can create your typed actions and use them in creating rules as well as checking them.