We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84cbb6c commit 42718d3Copy full SHA for 42718d3
routers/web/repo/repo.go
@@ -418,8 +418,9 @@ func RedirectDownload(ctx *context.Context) {
418
tagNames := []string{vTag}
419
curRepo := ctx.Repo.Repository
420
releases, err := db.Find[repo_model.Release](ctx, repo_model.FindReleasesOptions{
421
- RepoID: curRepo.ID,
422
- TagNames: tagNames,
+ IncludeDrafts: ctx.Repo.CanWrite(unit.TypeReleases),
+ RepoID: curRepo.ID,
423
+ TagNames: tagNames,
424
})
425
if err != nil {
426
ctx.ServerError("RedirectDownload", err)
0 commit comments