Skip to content

Commit

Permalink
Merge pull request #3318 from nextcloud/backport/3316/stable1.4
Browse files Browse the repository at this point in the history
[stable1.4] Additional check for stacks
  • Loading branch information
juliusknorr authored Sep 14, 2021
2 parents 31eb8d6 + fad63ac commit 5c8c73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/StackService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class StackService {
private $assignedUsersMapper;
private $attachmentService;
private $activityManager;
private $symfonyAdapter;
private $changeHelper;

public function __construct(
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5c8c73f

Please sign in to comment.