Commit cfe3c12d authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] Remove anyone has voted check

parent ed400698
......@@ -197,20 +197,8 @@ class Election extends AbstractEntity
}
if ($this->getEndDate()->getTimestamp() < time()) {
return true;
} else {
$anyoneVoted = true;
/** @var Elector $elector */
foreach ($this->electorate->getElectors() as $elector) {
$electionInvitation = $elector->getElectionInvitationForElection($this);
if (false !== $electionInvitation) {
if (!$electionInvitation->isVoted()) {
$anyoneVoted = false;
break;
}
}
}
}
return $anyoneVoted;
return false;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment