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:
authordartcafe <github@dartcafe.de>2020-07-12 14:39:24 +0300
committerdartcafe <github@dartcafe.de>2020-07-12 14:39:24 +0300
commite11022004cf8c6e7daf9bd8d0cbc5c414587e99a (patch)
tree144d3187780c21c26975129c939fdc9fc986985d /lib
parenta2197adf6775c9a387d2b192d033ab780f4da236 (diff)
fix voting
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;
}