BulkAction authorization?
Lets say I have a table of Tasks with a status column of Open/Closed and I want to restrict what records a user can Close when doing a BulkAction. How can I implement that restriction? I know I can simply restrict what records they can select as I have multiple bulkactions, but Im hoping I can at least return a proper error.
2 Replies
You can use ->visible(fn => ...) just pass a check if the user has admin role for example
That applies zero feedback to the user if all records selected don’t have the bulk action showing just because some of the records they selected are changeable