Skip to content

Commit

Permalink
authorizer: rename authorized internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalende committed Dec 15, 2023
1 parent 4940b85 commit 1a4fb2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/authorizer/contracts/Authorized.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ contract Authorized is IAuthorized, Initializable, AuthorizedHelpers {
* @dev Tells whether `who` has any permission on this contract
* @param who Address asking permissions for
*/
function _hasPermissions(address who) internal view returns (bool) {
function _hasAnyPermission(address who) internal view returns (bool) {
return IAuthorizer(authorizer).hasAnyPermission(who, address(this));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/smart-vault/contracts/SmartVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ contract SmartVault is ISmartVault, Authorized, ReentrancyGuardUpgradeable {
* @dev Tells whether someone has any permission over the smart vault
*/
function hasPermissions(address who) external view override returns (bool) {
return _hasPermissions(who);
return _hasAnyPermission(who);
}

/**
Expand Down

0 comments on commit 1a4fb2a

Please sign in to comment.