mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-22 00:31:21 +00:00
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:
parent
098616dcb6
commit
259563e082
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ export function SkillDetailPage() {
|
|||
}
|
||||
|
||||
const handleDownload = async () => {
|
||||
if (!user) {
|
||||
if (namespace!=='global' && !user) {
|
||||
requireLogin()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue