Skip to content

Commit

Permalink
change condition for outdated users
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Mar 18, 2024
1 parent 6444205 commit 6ee6ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/multisig/src/multisig_sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ pub trait MultisigSignModule:
let mut board_members_to_remove: ManagedVec<usize> = ManagedVec::new();
if outdated_board_members.is_empty() {
for signer_id in self.action_signer_ids(action_id).iter() {
if self.user_id_to_role(signer_id).get().has_no_role() {
if !self.user_id_to_role(signer_id).get().can_sign() {
board_members_to_remove.push(signer_id);
}
}
} else {
for signer_id in outdated_board_members.into_iter() {
if self.user_id_to_role(signer_id).get().has_no_role() {
if !self.user_id_to_role(signer_id).get().can_sign() {
board_members_to_remove.push(signer_id);
}
}
Expand Down

0 comments on commit 6ee6ce2

Please sign in to comment.