From fad63ac6f5a1a34d38281e40d8c649e46b61686f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 14 Sep 2021 09:21:18 +0200 Subject: [PATCH] Additional check for stacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/StackService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/StackService.php b/lib/Service/StackService.php index d8baedcae..93de14018 100644 --- a/lib/Service/StackService.php +++ b/lib/Service/StackService.php @@ -48,7 +48,6 @@ class StackService { private $assignedUsersMapper; private $attachmentService; private $activityManager; - private $symfonyAdapter; private $changeHelper; public function __construct( @@ -110,6 +109,7 @@ public function find($stackId) { throw new BadRequestException('stack id must be a number'); } + $this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_READ); $stack = $this->stackMapper->find($stackId); $cards = $this->cardMapper->findAll($stackId); foreach ($cards as $cardIndex => $card) {