We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfcdee commit 3618715Copy full SHA for 3618715
routers/web/repo/release.go
@@ -174,6 +174,7 @@ func TagsList(ctx *context.Context) {
174
// Disable the showCreateNewBranch form in the dropdown on this page.
175
ctx.Data["CanCreateBranch"] = false
176
ctx.Data["HideBranchesInDropdown"] = true
177
+ ctx.Data["CanCreateRelease"] = ctx.Repo.CanWrite(unit.TypeReleases) && !ctx.Repo.Repository.IsArchived
178
179
listOptions := db.ListOptions{
180
Page: ctx.FormInt("page"),
0 commit comments