Skip to content

Commit

Permalink
Add missing vote permission check #28 (beta 13)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Dec 1, 2020
1 parent ddc51f4 commit 0ed630d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/VotePollHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function handle(VotePoll $command)

$optionId = Arr::get($data, 'optionId');

if ($poll->hasEnded()) {
if ($poll->hasEnded() || !$actor->can('votePolls')) {
throw new PermissionDeniedException();
}

Expand Down

0 comments on commit 0ed630d

Please sign in to comment.