Salesforce Asked by Vivian on September 6, 2020
If we have standard controller with extension controller, extension runs in system mode generally. So now in this case extension controller, will it run in user mode? Provided i don’t have with sharing for extension controller
the below link can provide you the details https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_def.htm
A controller extension is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when:
Note:
Although custom controllers and controller extension classes execute in system mode and thereby ignore user permissions and field-level security, you can choose whether they respect a user's organization-wide defaults, role hierarchy, and sharing rules by using the with sharing keywords in the class definition. For information, see “Using the with sharing, without sharing, and inherited sharing Keywords”
Answered by JAK on September 6, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP