payload-plugin-author-fields
payload-plugin-author-fields copied to clipboard
Finer permission control on reading / updating the createdBy / updatedBy fields
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?
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)