Additional check for stacks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -596,16 +596,4 @@ class CardService {
|
||||
|
||||
$this->eventDispatcher->dispatchTyped(new CardUpdatedEvent($card));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return array
|
||||
* @throws \OCA\Deck\NoPermissionException
|
||||
* @throws BadRequestException
|
||||
*/
|
||||
public function findAllWithDue($userId) {
|
||||
$cards = $this->cardMapper->findAllWithDue($userId);
|
||||
|
||||
return $cards;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ class StackService {
|
||||
private $assignedUsersMapper;
|
||||
private $attachmentService;
|
||||
private $activityManager;
|
||||
private $symfonyAdapter;
|
||||
private $changeHelper;
|
||||
|
||||
public function __construct(
|
||||
@@ -110,6 +109,7 @@ class StackService {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user