From f9dd03eaede47b0dd79f7c0566b7990977795e11 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 9 Dec 2024 10:35:56 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Access/PollPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Access/PollPolicy.php b/src/Access/PollPolicy.php index 4ce91cf5..da459899 100644 --- a/src/Access/PollPolicy.php +++ b/src/Access/PollPolicy.php @@ -21,7 +21,7 @@ class PollPolicy extends AbstractPolicy public function seeVoteCount(User $actor, Poll $poll) { $isPollAuthor = $actor->id === $poll->user_id; - + if ($poll->hide_votes && $poll->end_date && !$poll->hasEnded() && !$isPollAuthor) { return $this->deny(); }