Skip to content

Commit

Permalink
refactor(IssuersCredentialService): Move existing credential check be…
Browse files Browse the repository at this point in the history
…low access check
  • Loading branch information
neha-puraswani committed Feb 29, 2024
1 parent fa0de90 commit efae10a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit efae10a

Please sign in to comment.