Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Feb 2, 2024
1 parent 532e530 commit 29269d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Access/PollPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public function edit(User $actor, Poll $poll)
if (!$poll->hasEnded() && $actor->can('edit', $poll->post)) {
// User either created poll & can edit own poll or can edit all polls in post
if (($actor->id === $poll->user_id && $actor->hasPermission('polls.selfEdit'))
|| ($actor->id == $poll->post->user_id && $actor->hasPermission('polls.selfPostEdit'))) {
|| ($actor->id == $poll->post->user_id && $actor->hasPermission('polls.selfPostEdit'))
) {
return $this->allow();
}
}
Expand Down

0 comments on commit 29269d5

Please sign in to comment.