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-04-21 16:29:24 +0300
committerdartcafe <github@dartcafe.de>2020-04-21 16:29:24 +0300
commit5e415fa7216932329f51ba0c44af5dad0e4cfeec (patch)
tree303f102322352c8579c422bde1feff91504f7d13 /lib
parent2df5ae1a46244b22a0d87d7439881ed30a9adb56 (diff)
added backend checks fix #910
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/VoteController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/VoteController.php b/lib/Controller/VoteController.php
index 7d5ba3ab..7ce4b423 100644
--- a/lib/Controller/VoteController.php
+++ b/lib/Controller/VoteController.php
@@ -112,7 +112,7 @@ class VoteController extends Controller {
}
if (!$this->acl->getAllowSeeResults()) {
- return new DataResponse((array) $this->mapper->findByPollAndUser($pollId, $this->userId), Http::STATUS_OK);
+ return new DataResponse((array) $this->mapper->findByPollAndUser($pollId, $this->acl->getUserId()), Http::STATUS_OK);
} elseif (!$this->acl->getAllowSeeUsernames()) {
$this->anonymizer->set($pollId, $this->acl->getUserId());
return new DataResponse((array) $this->anonymizer->getVotes(), Http::STATUS_OK);