Skip to content

Commit

Permalink
Check operator permissions, fixes #10
Browse files Browse the repository at this point in the history
Signed-off-by: William Entriken <[email protected]>
  • Loading branch information
fulldecent committed Oct 23, 2018
1 parent 900cadb commit 30f3057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/ALLINONE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
_;
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/SuNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
_;
}

Expand Down

0 comments on commit 30f3057

Please sign in to comment.