You need to sign in to do that
Don't have an account?
visulaforce
Field accessability difference b/w Apex
HI,
I am querying a custom object from S-control and Apex class. I am able query that object succesfully in Apex class but in S-control i m getting a error related to permission. Is thre any difference in field accessabilty b/w Apex n S-control.
By default Apex will execute in system mode, so it will not check for the permissions.
It will execute in system admin mode, even the user can't have access also he/she can see it.
If you want to implement security constraints please use the with sharing keyword in the header of class.
S-Controls are executed in user mode, so it will check for user permissions.
Hope this clarified your doubt.