diff --git a/contracts/PushCore/PushCoreV2_5.sol b/contracts/PushCore/PushCoreV2_5.sol index d8f44b6b..98c6e4b6 100644 --- a/contracts/PushCore/PushCoreV2_5.sol +++ b/contracts/PushCore/PushCoreV2_5.sol @@ -143,12 +143,12 @@ contract PushCoreV2_5 is Initializable, PushCoreStorageV1_5, PausableUpgradeable } function pauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _pause(); } function unPauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _unpause(); } @@ -401,7 +401,7 @@ contract PushCoreV2_5 is Initializable, PushCoreStorageV1_5, PausableUpgradeable /// @inheritdoc IPushCoreV2 function blockChannel(address _channelAddress) external whenNotPaused { - onlyPushChannelAdmin(); + onlyGovernance(); if (((channels[_channelAddress].channelState == 3) || (channels[_channelAddress].channelState == 0))) { revert Errors.Core_InvalidChannel(); } diff --git a/contracts/PushCore/PushCoreV2_Temp.sol b/contracts/PushCore/PushCoreV2_Temp.sol index b7ffb55e..652d25c6 100644 --- a/contracts/PushCore/PushCoreV2_Temp.sol +++ b/contracts/PushCore/PushCoreV2_Temp.sol @@ -144,12 +144,12 @@ contract PushCoreV2_Temp is Initializable, PushCoreStorageV1_5, PausableUpgradea } function pauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _pause(); } function unPauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _unpause(); } /** @@ -401,7 +401,7 @@ contract PushCoreV2_Temp is Initializable, PushCoreStorageV1_5, PausableUpgradea /// @inheritdoc IPushCoreV2 function blockChannel(address _channelAddress) external whenNotPaused { - onlyPushChannelAdmin(); + onlyGovernance(); if (((channels[_channelAddress].channelState == 3) || (channels[_channelAddress].channelState == 0))) { revert Errors.Core_InvalidChannel(); }