show on shared boards unassigned cards to all users

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2021-05-17 14:30:36 +02:00
parent d3d4797ab9
commit eaf061c4b7
3 changed files with 8 additions and 6 deletions

View File

@@ -114,7 +114,7 @@ class OverviewService {
$service = $this;
if (count($userBoard->getAcl()) === 0) {
// get cards with due date
// private board: get cards with due date
$findCards[] = array_map(static function ($card) use ($service, $userBoard, $userId) {
$service->enrich($card, $userId);
$cardData = $card->jsonSerialize();
@@ -122,7 +122,7 @@ class OverviewService {
return $cardData;
}, $this->cardMapper->findAllWithDue($userBoard->getId()));
} else {
// get assigned cards
// shared board: get all my assigned or unassigned cards
$findCards[] = array_map(static function ($card) use ($service, $userBoard, $userId) {
$service->enrich($card, $userId);
$cardData = $card->jsonSerialize();