This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix bug:404 when downloading other user's public attachment
tags/v1.21.12.1
yuyuanshifu
5 years ago
parent
8e3423a385
commit
a44de2bf22
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
routers/repo/attachment.go
+ 1
- 1
routers/repo/attachment.go
View File
@@ -139,7 +139,7 @@ func GetAttachment(ctx *context.Context) {
}
if repository == nil { //If not linked
if !(ctx.IsSigned && attach.UploaderID == ctx.User.ID) { //We block if not the uploader
if !(ctx.IsSigned && attach.UploaderID == ctx.User.ID)
&& attach.IsPrivate
{ //We block if not the uploader
ctx.Error(http.StatusNotFound)
return
}
Write
Preview
Loading…
Cancel
Save