Classes Should Explicitly Declare A Sharing Mode If DML Methods Are Used

< 1 min read

Impact Area

Security

Severity

High

Affected Element

Apex Class

Rule ID #

SF-0018

Impact #

Developers should take access restrictions into account before modifying objects.

Remediation #

Declare a sharing model in all classes with DML statements.

Time to fix #

60 min

References #

This rule is linked to Common Weakness Enumeration CWE-284 Improper Access Control.

Updated on March 21, 2025
Was it helpful ?