diff options
author | dartcafe <github@dartcafe.de> | 2020-04-21 16:29:24 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-04-21 16:29:24 +0300 |
commit | 5e415fa7216932329f51ba0c44af5dad0e4cfeec (patch) | |
tree | 303f102322352c8579c422bde1feff91504f7d13 /lib | |
parent | 2df5ae1a46244b22a0d87d7439881ed30a9adb56 (diff) |
added backend checks fix #910
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/VoteController.php | 2 |
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); |