Skip to content

Commit bea5d59

Browse files
JakobDevsilverwind
authored andcommitted
Add missing variable in tag list (go-gitea#28305)
This fixes a regression from go-gitea#25859 If a tag has no Release, Gitea will show a Link to create a Release for the Tag if the User has the Permission to do this, but the variable to indicate that is no longer set. Used here: https://github.com/go-gitea/gitea/blob/1bfcdeef4cca0f5509476358e5931c13d37ed1ca/templates/repo/tag/list.tmpl#L39-L41
1 parent 513cf7c commit bea5d59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ func TagsList(ctx *context.Context) {
174174
// Disable the showCreateNewBranch form in the dropdown on this page.
175175
ctx.Data["CanCreateBranch"] = false
176176
ctx.Data["HideBranchesInDropdown"] = true
177+
ctx.Data["CanCreateRelease"] = ctx.Repo.CanWrite(unit.TypeReleases) && !ctx.Repo.Repository.IsArchived
177178

178179
listOptions := db.ListOptions{
179180
Page: ctx.FormInt("page"),

0 commit comments

Comments
 (0)