From e11022004cf8c6e7daf9bd8d0cbc5c414587e99a Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sun, 12 Jul 2020 13:39:24 +0200 Subject: fix voting --- lib/Service/VoteService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3