Skip to content

Commit 119aca1

Browse files
committed
WIP: 4337
1 parent 1f16492 commit 119aca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/SafeProtocolManager.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ contract SafeProtocolManager is ISafeProtocolManager, RegistryManager, HooksMana
174174
function enablePlugin(
175175
address plugin,
176176
uint8 permissions
177-
) external noZeroOrSentinelPlugin(plugin) onlyPermittedModule(plugin, MODULE_TYPE_PLUGIN) onlyAccount {
177+
) external noZeroOrSentinelPlugin(plugin) onlyPermittedModule(plugin, MODULE_TYPE_PLUGIN) {
178178
// address(0) check omitted because it is not expected to enable it as a plugin and
179179
// call to it would fail. Additionally, registry should not permit address(0) as an module.
180180
if (!ISafeProtocolPlugin(plugin).supportsInterface(type(ISafeProtocolPlugin).interfaceId))
@@ -207,7 +207,7 @@ contract SafeProtocolManager is ISafeProtocolManager, RegistryManager, HooksMana
207207
* @notice Disable a plugin. This function should be called by account.
208208
* @param plugin Plugin to be disabled
209209
*/
210-
function disablePlugin(address prevPlugin, address plugin) external noZeroOrSentinelPlugin(plugin) onlyAccount {
210+
function disablePlugin(address prevPlugin, address plugin) external noZeroOrSentinelPlugin(plugin) {
211211
PluginAccessInfo storage prevPluginInfo = enabledPlugins[msg.sender][prevPlugin];
212212
PluginAccessInfo storage pluginInfo = enabledPlugins[msg.sender][plugin];
213213

0 commit comments

Comments
 (0)