Skip to content

Commit

Permalink
Merge pull request #284 from ethereum-push-notification-service/281-o…
Browse files Browse the repository at this point in the history
…nlyAdmin_vs_onlyGov_new

281 only admin vs only gov new
  • Loading branch information
zaryab2000 authored Feb 2, 2024
2 parents 677f2f1 + 54629a3 commit 2852656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contracts/PushCore/PushCoreV2_5.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ contract PushCoreV2_5 is Initializable, PushCoreStorageV1_5, PausableUpgradeable
}

function pauseContract() external {
onlyGovernance();
onlyPushChannelAdmin();
_pause();
}

function unPauseContract() external {
onlyGovernance();
onlyPushChannelAdmin();
_unpause();
}

Expand Down Expand Up @@ -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();
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/PushCore/PushCoreV2_Temp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ contract PushCoreV2_Temp is Initializable, PushCoreStorageV1_5, PausableUpgradea
}

function pauseContract() external {
onlyGovernance();
onlyPushChannelAdmin();
_pause();
}

function unPauseContract() external {
onlyGovernance();
onlyPushChannelAdmin();
_unpause();
}
/**
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 2852656

Please sign in to comment.