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
Cool_DevloperCool_Devloper 

Security Settings/Profile Permissions with VisualForce page

Hello VF Gurus,

 

I was trying hard to understand how Security Settings or the Profile permissions are enforced on a VisualForce page, in case, the page is displaying/using data from multiple objects.

 

I know the "With Sharing" keyword is used to run the controller in User Mode, but i am not sure how this works when the page is working with data fetched from multiple objects.

 

In my page, i am working with data drawn from around 3-4 objets and the controller is running on one of these as an Extensions.

 

While testing, i am completely lost as to how and why some features are working for some profiles and others are not.

 

Is there any reference on this or if someone has faced similar issue? Please let me know, would work wonders for me!!

 

Many Thanks,

Cool_D