Trying to define access rules on a field within an array. Suppose I have an array field with two fields for each item: Field A and Field B. Now, I only want Field A to be updateable if Field B has a certain value. The admin should see the field as editable if the condition is true for Field B and disabled if the expected value is not there.
My instinct would have been to use the access: { update: ({siblingData}) => siblingData.fieldB === "some value" } - however, siblingData is always undefined. Is this a bug in Payload? Or do I simply misunderstand what data is available for the access control inside of items of an array field.