From 69805161862f267b1effb64c0d0ccd6a1355f602 Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Mon, 16 Dec 2024 11:07:01 +0100 Subject: [PATCH] [front] restore access for webcrawler (#9399) --- .../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,