Skip to content

Commit 2b32d3e

Browse files
Merge pull request #8159 from nextcloud/backport/8126/stable33
[stable33] fix: loading notifications
2 parents e7aa9eb + 85f8d13 commit 2b32d3e

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)