I have a master-detail relationship where CustomA is the parent and CustomB is the child.
In the profile, CustomA has read access, while CustomB has read, create, and edit access. The OWD is set to private.
A user will manually share the record with another user with read-only access.
I want to grant edit access on the child record only when the parent's status field has the value "New." and restrict edit access it status has any other value.
How can I achieve this?