function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Harshal DhageHarshal Dhage 

Why Child records are editable even though Master record is read only in Salesforce?

I have a master detail relationship on a custom object where Account is master object. I have OWD for Account set to private. I also have criteria based sharing rules to share account records to specific users. These users will have Read Only access on Account records. As per master detail relationship child should also be Read only but in my case Child records editable to the user. I am using VF page to edit the child records here. Does VF(VF page controller is 'With Sharing' ) make any difference?
LBKLBK
A With Sharing Controller should impose the user's permission on VF page as well.

Is there any other Master-Detail relationship on the same Child object that opens it up to the user?