Skip to content

Commit

Permalink
ON-483: PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Sep 26, 2023
1 parent 071f5dd commit 22fb69b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/RolesRegistry/RolesRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ contract RolesRegistry is IERC7432 {
address _grantee,
address _caller
) internal {
bool _isRevocable = roleAssignments[_grantee][_tokenAddress][_tokenId][_role].revocable;
require(
_isRevocable || _caller == _grantee,
_caller == _grantee || roleAssignments[_grantee][_tokenAddress][_tokenId][_role].revocable,
"RolesRegistry: Role is not revocable or caller is not the grantee"
);
delete roleAssignments[_grantee][_tokenAddress][_tokenId][_role];
Expand Down

0 comments on commit 22fb69b

Please sign in to comment.