Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 9, 2024
1 parent 329b358 commit f9dd03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Access/PollPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f9dd03e

Please sign in to comment.