Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/VoteService.php2
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;
}