Skip to content

Commit

Permalink
Fix access control on Modifier*
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Oct 2, 2023
1 parent 3e9234a commit f30fc5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/core/Modifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract contract Modifier is Module, MiniAvatar, IAvatar {
uint256 value,
bytes calldata data,
Enum.Operation operation
) public virtual override onlyOwner returns (bool success) {}
) public virtual override moduleOnly returns (bool success) {}

/// @dev Passes a transaction to the modifier, expects return data.
/// @notice Can only be called by enabled modules.
Expand All @@ -42,7 +42,7 @@ abstract contract Modifier is Module, MiniAvatar, IAvatar {
public
virtual
override
onlyOwner
moduleOnly
returns (bool success, bytes memory returnData)
{}
}
4 changes: 2 additions & 2 deletions contracts/core/ModifierGuardable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract contract ModifierGuardable is ModuleGuardable, MiniAvatar, IAvatar {
uint256 value,
bytes calldata data,
Enum.Operation operation
) public virtual override onlyOwner returns (bool success) {}
) public virtual override moduleOnly returns (bool success) {}

/// @dev Passes a transaction to the modifier, expects return data.
/// @notice Can only be called by enabled modules.
Expand All @@ -41,7 +41,7 @@ abstract contract ModifierGuardable is ModuleGuardable, MiniAvatar, IAvatar {
public
virtual
override
onlyOwner
moduleOnly
returns (bool success, bytes memory returnData)
{}
}

0 comments on commit f30fc5a

Please sign in to comment.