Merge pull request #3319 from nextcloud/backport/3316/stable1.2

[stable1.2] Additional check for stacks
This commit is contained in:
Julius Härtl
2021-09-14 21:11:24 +02:00
committed by GitHub

View File

@@ -114,6 +114,7 @@ class StackService {
throw new BadRequestException('stack id must be a number'); throw new BadRequestException('stack id must be a number');
} }
$this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_READ);
$stack = $this->stackMapper->find($stackId); $stack = $this->stackMapper->find($stackId);
$cards = $this->cardMapper->findAll($stackId); $cards = $this->cardMapper->findAll($stackId);
foreach ($cards as $cardIndex => $card) { foreach ($cards as $cardIndex => $card) {