Collection access: upload does not contain the id or data argument #537
Replies: 1 comment 5 replies
-
Hey @AlessioGr — I've just done some verification that these arguments do indeed populate properly, and I think I know what's going on here. We run
In the second case, because we are just simply executing the Will you take a look to see if this produces your desired results? PS - I am going to move this to a Discussion because we do indeed populate those arguments while you update document(s). |
Beta Was this translation helpful? Give feedback.
-
Bug Report
I have specified the following access object in my collection:
The problem: both id and data are undefined. Using
update: ( req, id, data ) => {
won't work as well.It seems that only the req object is passed in, but not the data or id objects. This contradicts what's described here: https://payloadcms.com/docs/access-control/collections#update
Beta Was this translation helpful? Give feedback.
All reactions