From 7d0558a4397abe026e6b61d2ad07bde5f7419655 Mon Sep 17 00:00:00 2001 From: Anju Chamantha Date: Tue, 10 Dec 2024 18:25:12 +0530 Subject: [PATCH] Remove checking for REVOKED BNR status --- .../consent/extensions/admin/impl/CDSConsentAdminHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java b/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java index ef5bf1a5..315439e8 100644 --- a/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java +++ b/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/admin/impl/CDSConsentAdminHandler.java @@ -610,8 +610,7 @@ private boolean canRevokeByBNR(Set activeAccountIDs, String userId) { String permissionStatus = accountMetadataService.getAccountMetadataByKey(accountID, userId, CDSConsentExtensionConstants.BNR_PERMISSION); if (StringUtils.isNotBlank(permissionStatus) && - !(CDSConsentExtensionConstants.BNR_AUTHORIZE_PERMISSION.equals(permissionStatus) || - CDSConsentExtensionConstants.BNR_REVOKE_PERMISSION.equals(permissionStatus))) { + !(CDSConsentExtensionConstants.BNR_AUTHORIZE_PERMISSION.equals(permissionStatus))) { return false; }