From 84918473654fe8014903204d891a96d37f86d9c4 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 11 Oct 2024 16:10:15 -0600 Subject: [PATCH] fix double role check --- src/EtherFiNodesManager.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EtherFiNodesManager.sol b/src/EtherFiNodesManager.sol index 3993331c..8898cecc 100644 --- a/src/EtherFiNodesManager.sol +++ b/src/EtherFiNodesManager.sol @@ -440,7 +440,7 @@ contract EtherFiNodesManager is /// @param _selector method selector /// @param _target call target for forwarded call /// @param _allowed enable or disable the call - function updateAllowedForwardedExternalCalls(bytes4 _selector, address _target, bool _allowed) external onlyOwner { + function updateAllowedForwardedExternalCalls(bytes4 _selector, address _target, bool _allowed) external { if (!roleRegistry.hasRole(WHITELIST_UPDATER, msg.sender)) revert IncorrectRole(); allowedForwardedExternalCalls[_selector][_target] = _allowed;