From f99cdb5f0214455be683a7006d5b5df7b2980f33 Mon Sep 17 00:00:00 2001 From: Katherine Date: Mon, 14 Apr 2025 22:35:17 +0800 Subject: [PATCH] fix(attachment-url): only allow file collections with public URL access (#6664) * refactor: isPublicAccessStorage * fix: bug * fix: bug * fix: only allow file collections with public URL access * fix: build * fix: test --- .../__tests__/collection-select.test.tsx | 4 +- .../antd/remote-select/RemoteSelect.tsx | 3 ++ .../src/client/component/AttachmentUrl.tsx | 1 - .../src/client/hook/index.ts | 34 +++------------- .../src/client/interfaces/attachment-url.tsx | 8 +++- .../src/server/plugin.ts | 39 ++++++++++++++++++- .../plugin-file-manager/src/server/server.ts | 21 ++++++++++ 7 files changed, 77 insertions(+), 33 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx index 5f711873f2..8356660b10 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx @@ -54,7 +54,7 @@ describe('CollectionSelect', () => { role="button" >
{ role="button" >