payload-plugin-author-fields icon indicating copy to clipboard operation
payload-plugin-author-fields copied to clipboard

Finer permission control on reading / updating the createdBy / updatedBy fields

Open tyteen4a03 opened this issue 2 years ago • 1 comments

I would like to only allow certain users to edit the createdBy / updatedBy field, and also depending on what collection the field is in. Can this be added to the plugin?

tyteen4a03 avatar Dec 02 '23 08:12 tyteen4a03

Hi @tyteen4a03, sorry for the delay: have been trying to figure out a way to do this.

For the collection, you should be able to use createdByFieldEditable/updatedByFieldEditable (https://github.com/boomworks/payload-plugin-author-fields/blob/develop/demo/src/payload.config.ts#L21)

lindsayevans avatar Jan 30 '24 04:01 lindsayevans