diff options
Diffstat (limited to 'lib/Service/VoteService.php')
-rw-r--r-- | lib/Service/VoteService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/VoteService.php b/lib/Service/VoteService.php index 32076289..cbedb1ad 100644 --- a/lib/Service/VoteService.php +++ b/lib/Service/VoteService.php @@ -88,7 +88,7 @@ class VoteService { * @throws NotAuthorizedException */ public function list($pollId = 0, $token = '') { - if (!$this->acl->setPollIdOrToken($pollId, $token)->getAllowView()) { + if (!$this->acl->set($pollId, $token)->getAllowView()) { throw new NotAuthorizedException; } @@ -115,7 +115,7 @@ class VoteService { $option = $this->optionMapper->find($optionId); - if (!$this->acl->setPollIdOrToken($option->getPollId(), $token)->getAllowVote()) { + if (!$this->acl->set($option->getPollId(), $token)->getAllowVote()) { throw new NotAuthorizedException; } @@ -156,7 +156,7 @@ class VoteService { */ public function delete($pollId, $userId) { - if (!$this->acl->setPollId($pollId)->getAllowEdit()) { + if (!$this->acl->set($pollId)->getAllowEdit()) { throw new NotAuthorizedException; } |