Skip to content

Commit 14eeb42

Browse files
committed
Governance: fix voting members on feature disabled
1 parent 3f00a5f commit 14eeb42

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/HMS/Governance/VotingManager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function countCurrentMembers()
9292
public function votingMembers()
9393
{
9494
if ($this->features->isDisabled('voting_status')) {
95-
return $this->countCurrentMembers();
95+
return $this->roleRepository->findOneByName(Role::MEMBER_CURRENT)->getUsers();
9696
}
9797

9898
$v = collect();
@@ -139,6 +139,10 @@ public function votingMembers()
139139
*/
140140
public function countVotingMembers()
141141
{
142+
if ($this->features->isDisabled('voting_status')) {
143+
return $this->countCurrentMembers();
144+
}
145+
142146
return $this->votingMembers()->count();
143147
}
144148

0 commit comments

Comments
 (0)