From d3aaa63a2a71a2cc77f48682abac67ca9ae67e60 Mon Sep 17 00:00:00 2001 From: Nicola Miotto Date: Fri, 11 Aug 2023 16:57:30 +0200 Subject: [PATCH] Remove redundant checks (#113) close #97 --- .../ResolutionManager/ResolutionManager.sol | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/contracts/ResolutionManager/ResolutionManager.sol b/contracts/ResolutionManager/ResolutionManager.sol index d0e2b70..367e15e 100644 --- a/contracts/ResolutionManager/ResolutionManager.sol +++ b/contracts/ResolutionManager/ResolutionManager.sol @@ -167,13 +167,6 @@ contract ResolutionManager is Initializable, ResolutionManagerBase, HasRole { * @param resolutionId The id of the resolution to approve. */ function approveResolution(uint256 resolutionId) external virtual { - require( - _shareholderRegistry.isAtLeast( - _shareholderRegistry.MANAGING_BOARD_STATUS(), - _msgSender() - ), - "Resolution: only managing board can approve" - ); _approveResolution(resolutionId); } @@ -182,13 +175,6 @@ contract ResolutionManager is Initializable, ResolutionManagerBase, HasRole { * @param resolutionId The id of the resolution to reject. */ function rejectResolution(uint256 resolutionId) external virtual { - require( - _shareholderRegistry.isAtLeast( - _shareholderRegistry.MANAGING_BOARD_STATUS(), - _msgSender() - ), - "Resolution: only managing board can reject" - ); _rejectResolution(resolutionId); } @@ -209,13 +195,6 @@ contract ResolutionManager is Initializable, ResolutionManagerBase, HasRole { address[] memory executionTo, bytes[] memory executionData ) external virtual { - require( - _shareholderRegistry.isAtLeast( - _shareholderRegistry.MANAGING_BOARD_STATUS(), - _msgSender() - ), - "Resolution: only managing board can update" - ); _updateResolution( resolutionId, dataURI,