Feature Request - Granular Access Control for Array Fields #4625
ccssmnn
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
I need this feature too, for all actions. |
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
-
I've found a need for granular access control for array fields within collections.
My use case primarily involves granular read access, currently achieved through the afterRead hook. However, I believe a built-in access control feature for array elements would be more efficient and user-friendly, especially for create, update, and delete scenarios.
I propose adding an elementAccess property with an ElementAccess type to array fields. This property would allow for fine-grained access control on individual elements within the array, complementing the existing access property.
This feature would enhance data privacy and simplify access control configurations for array fields in PayloadCMS.
Beta Was this translation helpful? Give feedback.
All reactions