Skip to main content
Guess I really never thought about this one or maybe never encountered it.  The user opens up a record in a custom object.  Viewing is just fine.  There is an EDIT button and when they click they get Insufficient Privileges.  They have edit rights but they are not the owner of this record and the actual owner is HIGHER up the chain in the role hierarchy.  So I'm thinking that it is reasonable that they cannot edit the record.

 

The question is - why does the EDIT button appear?  The fact that it is there confuses the user into thinking they can in fact edit.  Does Salesforce then 'defer' on figuring out if the user actually can edit until they try to do so?
1 Antwort
  1. 20. Sept. 2018, 20:34
    Dean,

     

    The Visibility of the buttons are controlled via the Profile level, so the user's profile is giving the permission to show the button on the layout. Whereas when the actual edit happens up the OWD gets into picture it actually checks the Owner, Hierarchy and other aspects of it.

     

    The fact that the button exist is because the user can edit there owned records. I agree Salesforce could have defined the architecture by hiding the button on the records that user doesn't own (if they do not have access), but it is more complex than what we can actually think.

     

    I am not sure if I was able to get to the point WHY the button is visible but I hope it helped to some extent.

     

    PS: If you would like to understand more about the Security aspect in salesforce you could watch the 'WHO SEES WHAT' series for salesforce on youtube.