DML security
Via Apex, you have the possibility to grant access to users to insert, update, or delete records when the user's profile does not grant that access. If you don't want to grant that access (via a Visualforce page or Lightning component), you need to verify whether the user has the access to do that.
You learned in the Schema class about the possibilities to get a lot of information about the object. In this class and subclasses, you will also find the information about whether a user can access and/or modify the object. Each object has some properties in the DescribeSObjectResult class that reflect the access rights of the user.
You can find the full information about an object with only one line of code. The following is the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access