We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15590ee + fae59b8 commit 397fa35Copy full SHA for 397fa35
sfdx-source/apex-common/main/classes/fflib_SObjectDomain.cls
@@ -269,8 +269,8 @@ public virtual with sharing class fflib_SObjectDomain
269
**/
270
public virtual void handleAfterUndelete()
271
{
272
- if(Configuration.EnforcingTriggerCRUDSecurity && !SObjectDescribe.isCreateable())
273
- throw new DomainException('Permission to create an ' + SObjectDescribe.getName() + ' denied.');
+ if(Configuration.EnforcingTriggerCRUDSecurity && !SObjectDescribe.isUndeletable())
+ throw new DomainException('Permission to undelete an ' + SObjectDescribe.getName() + ' denied.');
274
275
onAfterUndelete();
276
}
0 commit comments