Skip to content

Commit

Permalink
Removing the last editor check
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed May 27, 2024
1 parent df84104 commit c0b2d24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/contracts/src/governance/MainVotingPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ contract MainVotingPlugin is Addresslist, MajorityVotingBase, IEditors, IMembers
function leaveSpace() public {
if (!isEditor(msg.sender)) {
revert NotAnEditor();
} else if (addresslistLength() <= 1) revert NoEditorsLeft();
}
// Not checking whether msg.sender is the last editor. It is acceptable
// that a DAO/Space remains in read-only mode, as it can always be forked.

address[] memory _editors = new address[](1);
_editors[0] = msg.sender;
Expand Down

0 comments on commit c0b2d24

Please sign in to comment.