diff options
-rw-r--r-- | lib/Service/VoteService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/VoteService.php b/lib/Service/VoteService.php index 7534b258..32076289 100644 --- a/lib/Service/VoteService.php +++ b/lib/Service/VoteService.php @@ -119,7 +119,7 @@ class VoteService { throw new NotAuthorizedException; } - if ($option->getPollId() !== $this->acl->getPollId()) { + if (intval($option->getPollId()) !== $this->acl->getPollId()) { throw new NotAuthorizedException; } |