Use the new winter 19 features, lightning:map component and apex inherited sharing solution
Answers
Answered by
0
Apex is regarded as insecure without a sharing declaration. It is challenging to design apex classes that can operate with or without sharing mode at runtime . There is a particular adopted sharing declaration that makes the intent clear to escape any type of ambiguity that may arise from removed declaration or fake positives from security analysis of tools. There is a clear difference between apex class marked with inherited sharing and the one that has a removed declaration. In a case where the class applied as the point of entry to the appex transaction , the ommitted sharing declaration can operate without sharing.
Similar questions