Access Permissions Should Be Checked Before A SOQL/SOSL/DML Operation

Impact Area

Manageability

 

Severity

Medium

 

Affected Element

Apex  Class

Apex Trigger

Rule ID

SF-0033

Impact #

Since Apex runs in system mode not having proper permissions checks results in escalation of privilege and may produce runtime errors.

Remediation #

Avoid runtime errors by explicitly checking for permissions before SOQL/SOSL/DML statements.

Time to fix #

45 mins

QUALITY CENTER APP #

Instant quality scans right in your org.

Free on AppExchange. No Credit Card Required.

Was it helpful ?
Table of contents

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!