From 636dc393d5e3b457345ee8e639138b241d39f229 Mon Sep 17 00:00:00 2001 From: Reede Stockton Date: Fri, 10 Nov 2023 11:24:58 -0800 Subject: [PATCH] Fix failing HH_ManageHH_Test.testNewHHObject() --- force-app/main/default/classes/HH_ManageHH_CTRL.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/classes/HH_ManageHH_CTRL.cls b/force-app/main/default/classes/HH_ManageHH_CTRL.cls index c37cb809bb..bf7d016d05 100644 --- a/force-app/main/default/classes/HH_ManageHH_CTRL.cls +++ b/force-app/main/default/classes/HH_ManageHH_CTRL.cls @@ -124,7 +124,7 @@ public with sharing class HH_ManageHH_CTRL { hhId = hh.Id; if (contactId != null) { - if (!UTIL_Permissions.canUpdate('npo02__Household__c','npo02__Household__c', false)) { + if (!UTIL_Permissions.canUpdate('Contact','npo02__Household__c', false)) { throw new UTIL_Permissions.InsufficientPermissionException(System.Label.commonAccessErrorMessage); } Contact con = new Contact(Id = contactId, npo02__Household__c = hhId);