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.
This commit is contained in:
wurongjie 2026-04-13 11:40:05 +08:00 committed by wrj97
parent 098616dcb6
commit 259563e082

View file

@ -302,7 +302,7 @@ export function SkillDetailPage() {
}
const handleDownload = async () => {
if (!user) {
if (namespace!=='global' && !user) {
requireLogin()
return
}