Skip to content

Commit 85f8d13

Browse files
luka-nextcloudbackportbot[bot]
authored andcommitted
fix: loading notifications
Signed-off-by: Luka Trovic <luka@nextcloud.com>
1 parent e7aa9eb commit 85f8d13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Activity/ActivityManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ public function canSeeCardActivity(int $cardId, string $userId): bool {
560560
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_READ, $userId);
561561
$card = $this->cardMapper->find($cardId);
562562
return $card->getDeletedAt() === 0;
563-
} catch (NoPermissionException $e) {
563+
} catch (NoPermissionException|DoesNotExistException $e) {
564564
return false;
565565
}
566566
}
@@ -570,7 +570,7 @@ public function canSeeBoardActivity(int $boardId, string $userId): bool {
570570
$this->permissionService->checkPermission($this->boardMapper, $boardId, Acl::PERMISSION_READ, $userId);
571571
$board = $this->boardMapper->find($boardId);
572572
return $board->getDeletedAt() === 0;
573-
} catch (NoPermissionException $e) {
573+
} catch (NoPermissionException|DoesNotExistException $e) {
574574
return false;
575575
}
576576
}

0 commit comments

Comments
 (0)