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
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-09-26 13:38:18 +0300
committerdartcafe <github@dartcafe.de>2022-09-26 13:43:44 +0300
commitd908f04c976a654e204847bf04fbc3ef3cf96e18 (patch)
treed5f4aa75536a48214168ea4edaa0722291bf52f1
parent46edd1fd1a0ab0eb070297bd8b6d3bbfd9ee144b (diff)
fix public vote #2600fix/misc
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r--lib/Controller/PublicController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PublicController.php b/lib/Controller/PublicController.php
index 5d70f0ad..be464c51 100644
--- a/lib/Controller/PublicController.php
+++ b/lib/Controller/PublicController.php
@@ -231,7 +231,7 @@ class PublicController extends BaseController {
*/
public function setVote(int $optionId, string $setTo, string $token): JSONResponse {
return $this->response(fn () => [
- 'vote' => $this->voteService->set($optionId, $setTo, $this->acl->setToken($token, Acl::PERMISSION_COMMENT_ADD))
+ 'vote' => $this->voteService->set($optionId, $setTo, $this->acl->setToken($token, Acl::PERMISSION_VOTE_EDIT))
], $token);
}