Salesforce Decode
Salesforcedecode
Security & SharingAdvancedCode Reviewsecurityflssecure-apexuser-mode

How do you enforce CRUD and FLS in Apex?

Scenario

An @AuraEnabled method returns Salary__c to users who should not see it.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.