diff options
author | dartcafe <github@dartcafe.de> | 2022-09-26 13:38:18 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-09-26 13:43:44 +0300 |
commit | d908f04c976a654e204847bf04fbc3ef3cf96e18 (patch) | |
tree | d5f4aa75536a48214168ea4edaa0722291bf52f1 | |
parent | 46edd1fd1a0ab0eb070297bd8b6d3bbfd9ee144b (diff) |
fix public vote #2600fix/misc
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r-- | lib/Controller/PublicController.php | 2 |
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); } |