diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java index 71d97159c..87618326a 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java @@ -235,11 +235,11 @@ public VerifiableCredential issueFrameworkCredential(IssueFrameworkCredentialReq Wallet baseWallet = commonService.getWalletByIdentifier(miwSettings.authorityWalletBpn()); + validateAccess(callerBPN, baseWallet); + //check duplicate doesFrameworkCredentialExist(holderWallet.getDid(), baseWallet.getDid(), request.getType()); - - validateAccess(callerBPN, baseWallet); // get Key byte[] privateKeyBytes = walletKeyService.getPrivateKeyByWalletIdentifierAsBytes(baseWallet.getId());