diff --git a/lib/Controller/PublicPageController.php b/lib/Controller/PublicPageController.php index ae88ff193..7d0dcac23 100644 --- a/lib/Controller/PublicPageController.php +++ b/lib/Controller/PublicPageController.php @@ -656,7 +656,7 @@ public function contentSearch(string $searchString): DataResponse { if (0 !== $sharePageId = $this->getCollectiveShare()->getPageId()) { try { $this->checkPageShareAccess($collectiveId, $sharePageId, $value['id'], $owner); - } catch (NotPermittedException) { + } catch (NotPermittedException|OCSForbiddenException) { continue; } }