Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Datagrid bulkActionButtons shows empty toolbar when user cannot access the delete action #10347

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Nov 13, 2024

Problem

Datagrid has built-in acess control. If the user cannot access the current resource with the delete action, the BulkDeleteButton doesn't appear.

But the bulk action toolbar is still displayed in that case... empty.

image

Solution

Check the delete rights before setting the default bulkActionToolbar value to hide the checkboxes when the user hasn't defined custom bulk actions and they don't have the delete rights.

erwanMarmelab

This comment was marked as off-topic.

@djhi djhi added this to the 5.3.4 milestone Nov 14, 2024
@djhi djhi merged commit 33f186b into master Nov 14, 2024
15 checks passed
@djhi djhi deleted the Fix-bulk-delete-datagrid-can-access branch November 14, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants