mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 06:21:23 +01:00
parent
84cbb6c4d2
commit
42718d32af
1 changed files with 3 additions and 2 deletions
|
@ -418,6 +418,7 @@ func RedirectDownload(ctx *context.Context) {
|
||||||
tagNames := []string{vTag}
|
tagNames := []string{vTag}
|
||||||
curRepo := ctx.Repo.Repository
|
curRepo := ctx.Repo.Repository
|
||||||
releases, err := db.Find[repo_model.Release](ctx, repo_model.FindReleasesOptions{
|
releases, err := db.Find[repo_model.Release](ctx, repo_model.FindReleasesOptions{
|
||||||
|
IncludeDrafts: ctx.Repo.CanWrite(unit.TypeReleases),
|
||||||
RepoID: curRepo.ID,
|
RepoID: curRepo.ID,
|
||||||
TagNames: tagNames,
|
TagNames: tagNames,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue