We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f00a5f commit 14eeb42Copy full SHA for 14eeb42
1 file changed
app/HMS/Governance/VotingManager.php
@@ -92,7 +92,7 @@ public function countCurrentMembers()
92
public function votingMembers()
93
{
94
if ($this->features->isDisabled('voting_status')) {
95
- return $this->countCurrentMembers();
+ return $this->roleRepository->findOneByName(Role::MEMBER_CURRENT)->getUsers();
96
}
97
98
$v = collect();
@@ -139,6 +139,10 @@ public function votingMembers()
139
*/
140
public function countVotingMembers()
141
142
+ if ($this->features->isDisabled('voting_status')) {
143
+ return $this->countCurrentMembers();
144
+ }
145
+
146
return $this->votingMembers()->count();
147
148
0 commit comments