From 259563e08226c53aa96b79d4ba00c3e1545389a7 Mon Sep 17 00:00:00 2001 From: wurongjie Date: Mon, 13 Apr 2026 11:40:05 +0800 Subject: [PATCH] feat(auth): allow anonymous download for global skills Update handleDownload to bypass the authentication requirement when the namespace is 'global'. This enables unauthenticated users to download public global skills, consistent with the publicly accessible route. --- web/src/pages/skill-detail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/skill-detail.tsx b/web/src/pages/skill-detail.tsx index 5687eaa1b..61480148a 100644 --- a/web/src/pages/skill-detail.tsx +++ b/web/src/pages/skill-detail.tsx @@ -302,7 +302,7 @@ export function SkillDetailPage() { } const handleDownload = async () => { - if (!user) { + if (namespace!=='global' && !user) { requireLogin() return }