Simple change in voilation check

This commit is contained in:
Tarush Singh
2022-12-01 17:52:48 +05:30
parent bce0331fe7
commit efd83665dc

View File

@ -666,7 +666,8 @@ public class ApexCRUDViolationRule extends AbstractApexRule {
return true; return true;
} }
if (isImproperDMLCheck && !userMode && !systemMode) { if (isImproperDMLCheck && !userMode && !systemMode) {
addViolationWithMessage(data, node, "This CRUD statement uses explicit system mode"); //addViolationWithMessage(data, node, "This CRUD statement uses explicit system mode");
addViolation(data, node);
return true; return true;
} }
} else { } else {