From 9e6a6c3ba111613e971a0167536a9e6955f42440 Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Mon, 16 Dec 2024 10:56:14 +0100 Subject: [PATCH] [front] restore access for webcrawler --- .../data_sources/[dsId]/documents/[documentId]/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts index f749f9d0655d..36f3f5ba9b30 100644 --- a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts +++ b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts @@ -297,7 +297,7 @@ async function handler( if ( !dataSource || dataSource.space.sId !== spaceId || - !dataSource.canRead(auth) + (!dataSource.canRead(auth) && !auth.isSystemKey()) ) { return apiError(req, res, { status_code: 404,