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