Skip to content

Commit 4aac6f1

Browse files
Merge pull request #8160 from nextcloud/backport/8126/stable34
[stable34] fix: loading notifications
2 parents 7191435 + 830e7fe commit 4aac6f1

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
@@ -565,7 +565,7 @@ public function canSeeCardActivity(int $cardId, string $userId): bool {
565565
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_READ, $userId);
566566
$card = $this->cardMapper->find($cardId);
567567
return $card->getDeletedAt() === 0;
568-
} catch (NoPermissionException $e) {
568+
} catch (NoPermissionException|DoesNotExistException $e) {
569569
return false;
570570
}
571571
}
@@ -575,7 +575,7 @@ public function canSeeBoardActivity(int $boardId, string $userId): bool {
575575
$this->permissionService->checkPermission($this->boardMapper, $boardId, Acl::PERMISSION_READ, $userId);
576576
$board = $this->boardMapper->find($boardId);
577577
return $board->getDeletedAt() === 0;
578-
} catch (NoPermissionException $e) {
578+
} catch (NoPermissionException|DoesNotExistException $e) {
579579
return false;
580580
}
581581
}

0 commit comments

Comments
 (0)