Replies: 1 comment
-
You just need to write the policy for the model. The button will still be there, but the action will not proceed. The context menu (and the actions inside) is rendered at the beginning of the request, then the page is rendered. And the authorization policy is checked after the button is clicked when the event ID is sent to the server. So there's no way to hide the action. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I customize the array of action values in
getEventClickContextMenuActions()
based on the model policy for a specific event record? For example, if the user has permission to update the specific record, show the edit menu in the context menu; otherwise, hide it.Beta Was this translation helpful? Give feedback.
All reactions