Allow to use card item without being available in global card store

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-07-11 11:10:47 +02:00
parent 3a4bbac6d4
commit 348fc669be
12 changed files with 160 additions and 52 deletions

View File

@@ -144,7 +144,7 @@ class DashboardService {
/**
* @return array
*/
public function findMyAssignedCards($userId) {
public function findAssignedCards($userId) {
$userInfo = $this->getBoardPrerequisites();
$userBoards = $this->findAllBoardsFromUser($userInfo);
$allAssignedCards = [];
@@ -155,7 +155,7 @@ class DashboardService {
$cardData = $card->jsonSerialize();
$cardData['boardId'] = $userBoard->getId();
return $cardData;
}, $this->cardMapper->findMyAssignedCards($userBoard->getId(), $this->userId));
}, $this->cardMapper->findAssignedCards($userBoard->getId(), $this->userId));
}
return $allAssignedCards;
}