Skip to content

Commit

Permalink
Fix secondary account permission not getting persisted for some scena…
Browse files Browse the repository at this point in the history
…rios
  • Loading branch information
imesh94 committed Nov 8, 2024
1 parent 6b7a90a commit 167a125
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ public void execute(ConsentPersistData consentPersistData) throws ConsentExcepti
// bind user consented non-primary accounts with the created consent
bindNonPrimaryAccountsToConsentWithGivenPermissions(consentCoreService, consentResource,
consentData, nonPrimaryAccountIDsMapWithPermissions);

} else if (!nonPrimaryAccountIDsMapWithPermissions.isEmpty()) {
// bind user consented non-primary accounts with the created consent
bindNonPrimaryAccountsToConsentWithGivenPermissions(consentCoreService, consentResource,
consentData, nonPrimaryAccountIDsMapWithPermissions);

} else {
// case where no specific non-primary account permissions provided
bindUserAccountsToConsent(consentCoreService, consentResource, consentData, accountIdList);
Expand Down

0 comments on commit 167a125

Please sign in to comment.