Bug: Front end renders Delete Selected, Restore Selected, Force Delete Selected regardless of Policy and/or resource Authorization Setting #6832
Unanswered
robertmarney
asked this question in
Ideas & Feature Requests
Replies: 1 comment
-
Hi @crynobone. I am happy to discuss. Do you have initial thoughts? |
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
-
Description:
When all resources are selected the trash can icon appears providing options to delete, restore, and force delete selected even when Policy or Resource explicitly disallow.
Previous Reports:
As communicated in the past before closing previous bug reports, there is concern about hydrating many model instances (each model is checked individually).
This issue is not new, however has been ignored repeatedly (not exhaustive):
Still a Bug:
Performance considerations not-withstanding this is a bug, a button that should not be mounted is mounted and the user is left confused to why their intentional action is "not working".
Suggest Go-Forward:
A. Introduce a resource level policy check e.g.
canDeleteAny(User $user): false
- If present in policy short circuit the check (before model hydration)B. Introduce a Resource property to disable the select all button
Beta Was this translation helpful? Give feedback.
All reactions