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:
Diffstat (limited to 'lib/Service/CommentService.php')
-rw-r--r--lib/Service/CommentService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/CommentService.php b/lib/Service/CommentService.php
index 6c5f89b6..cdb2616a 100644
--- a/lib/Service/CommentService.php
+++ b/lib/Service/CommentService.php
@@ -78,7 +78,7 @@ class CommentService {
*/
public function list($pollId = 0, $token = '') {
- if (!$this->acl->setPollIdOrToken($pollId, $token)->getAllowView()) {
+ if (!$this->acl->set($pollId, $token)->getAllowView()) {
throw new NotAuthorizedException;
}
@@ -101,7 +101,7 @@ class CommentService {
*/
public function add($pollId = 0, $message, $token = '') {
- if (!$this->acl->setPollIdOrToken($pollId, $token)->getAllowComment()) {
+ if (!$this->acl->set($pollId, $token)->getAllowComment()) {
throw new NotAuthorizedException;
}
@@ -136,7 +136,7 @@ class CommentService {
public function delete($commentId, $token = '') {
$this->comment = $this->commentMapper->find($commentId);
- if ($this->acl->setPollIdOrToken($this->comment->getPollId(), $token)->getUserId() !== $this->acl->getUserId()) {
+ if ($this->acl->set($this->comment->getPollId(), $token)->getUserId() !== $this->acl->getUserId()) {
throw new NotAuthorizedException;
}