Permalink
Browse files

Check operator permissions, fixes #10

Signed-off-by: William Entriken <github.com@phor.net>
  • Loading branch information...
fulldecent committed Oct 23, 2018
1 parent 900cadb commit 30f305710706371326486ef14daf941c0276a9c5
Showing with 2 additions and 2 deletions.
  1. +1 −1 contracts/ALLINONE.sol
  2. +1 −1 contracts/SuNFT.sol
@@ -208,7 +208,7 @@ contract SuNFT is ERC165, ERC721, ERC721Metadata, ERC721Enumerable, SupportsInte
address owner = _tokenOwnerWithSubstitutions[_tokenId];
require(msg.sender == owner ||
msg.sender == tokenApprovals[_tokenId] ||
operatorApprovals[msg.sender][msg.sender]);
operatorApprovals[owner][msg.sender]);
_;
}

@@ -45,7 +45,7 @@ contract SuNFT is ERC165, ERC721, ERC721Metadata, ERC721Enumerable, SupportsInte
address owner = _tokenOwnerWithSubstitutions[_tokenId];
require(msg.sender == owner ||
msg.sender == tokenApprovals[_tokenId] ||
operatorApprovals[msg.sender][msg.sender]);
operatorApprovals[owner][msg.sender]);
_;
}

0 comments on commit 30f3057

Please sign in to comment.