Fixed poll closed date comparison
This commit is contained in:
parent
437591b297
commit
99eee326ab
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user