Fixed poll closed date comparison

This commit is contained in:
aymm 2021-03-27 10:42:36 +00:00
parent 437591b297
commit 99eee326ab

View File

@ -125,7 +125,7 @@ class Poll
public function canVote()
{
$is_authenticated = $this->api->isAuthenticated(false, true);
$is_closed = $this->closed_at >= new \DateTime();
$is_closed = $this->closed_at <= new \DateTime();
return $is_authenticated && !$is_closed;
}