Skip to content

Commit 674a27a

Browse files
committed
fix permission
1 parent 340bf89 commit 674a27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/routes/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ func RegisterRoutes(m *macaron.Macaron) {
515515
ctx.ServerError("GetAttachmentByUUID.GetReleaseByID", err)
516516
return
517517
}
518-
if !rel.Repo.CanRead(models.UnitTypeIssues){
518+
if !rel.Repo.CanRead(models.UnitTypeReleases){
519519
ctx.Error(403)
520520
return
521521
}

0 commit comments

Comments
 (0)