diff --git a/contracts/ClaimIssuer.sol b/contracts/ClaimIssuer.sol index 9a8e698..96c7fdf 100644 --- a/contracts/ClaimIssuer.sol +++ b/contracts/ClaimIssuer.sol @@ -10,6 +10,11 @@ contract ClaimIssuer is IClaimIssuer, Identity { address issuer; bytes memory sig; bytes memory data; + + if (msg.sender != address(this)) { + require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key"); + } + ( foundClaimTopic, scheme, issuer, sig, data, ) = Identity(_identity).getClaim(_claimId); // require(sig != 0, "Claim does not exist"); diff --git a/package.json b/package.json index 334787d..23d1dbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onchain-id/solidity", - "version": "0.3.1", + "version": "0.3.2", "description": "Ethereum solidity smart contracts for Blockchain OnchainID identities.", "files": [ "build",