Skip to main content
3 events
when toggle format what by license comment
Nov 9, 2018 at 14:01 comment added Manjot Singh Yes I am not using Without sharing keyword I am just going to add some users in community for now. @CharlesT
Nov 9, 2018 at 13:16 comment added Charles T Be VERY CAREFUL using without sharing on Communities code as you don't want to expose a data leak (I have seen this happen in production solutions). The correct approach is to make your Apex controllers (of both Lightning and Visualforce) with sharing. If it needs to make decisions based on data unavailable to the user, it can call a without sharing helper class that accesses the privileged data, executes the business logic required from it, and returns the outcome of that logic to the controller.
Nov 9, 2018 at 11:34 history answered Pranay Jaiswal CC BY-SA 4.0