Skip to content

Commit

Permalink
Testing 2gp failure. Will be reverted...
Browse files Browse the repository at this point in the history
  • Loading branch information
npsp-reedestockton committed Dec 9, 2023
1 parent 9317c73 commit b204fc9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions force-app/main/default/classes/HH_ManageHH_CTRL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,16 @@ public with sharing class HH_ManageHH_CTRL {
}

private Boolean canUpdateHousehold() {
String accountToCheck = isHHAccount ? 'Account' : 'npo02__Household__c';
Set<String> fieldsToCheck = getFieldsToCheck();
if (!isHHAccount) {
fieldsToCheck.add('npo02__Household__c');
}
for (String fieldToCheck : fieldsToCheck) {
if (!UTIL_Permissions.canUpdate(accountToCheck, fieldToCheck, false)) {
return false;
}
}
// String accountToCheck = isHHAccount ? 'Account' : 'npo02__Household__c';
// Set<String> fieldsToCheck = getFieldsToCheck();
// if (!isHHAccount) {
// fieldsToCheck.add('npo02__Household__c');
// }
// for (String fieldToCheck : fieldsToCheck) {
// if (!UTIL_Permissions.canUpdate(accountToCheck, fieldToCheck, false)) {
// return false;
// }
// }

return true;
}
Expand Down

0 comments on commit b204fc9

Please sign in to comment.