diff options
author | Unknwon <u@gogs.io> | 2016-08-30 05:30:47 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-30 05:30:47 -0700 |
commit | e6ec1ca1f813fc956657e390c4bf14cf90c9dbac (patch) | |
tree | bfeba9f3725e2e4414dfe5af68edb31b9b22cf41 /cmd/web.go | |
parent | 6f90835f958bbe2046e04fbddc5cb96940965eda (diff) | |
download | gitea-e6ec1ca1f813fc956657e390c4bf14cf90c9dbac.tar.gz gitea-e6ec1ca1f813fc956657e390c4bf14cf90c9dbac.zip |
#3548 disable issue cannot edit label and milestonefor pull requests
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 92e7fef423..d92b66d8b6 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -478,7 +478,7 @@ func runWeb(ctx *cli.Context) error { m.Post("/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel) m.Post("/delete", repo.DeleteLabel) m.Post("/initialize", bindIgnErr(auth.InitializeLabelsForm{}), repo.InitializeLabels) - }, repo.MustEnableIssues, reqRepoWriter, context.RepoRef()) + }, reqRepoWriter, context.RepoRef()) m.Group("/milestones", func() { m.Combo("/new").Get(repo.NewMilestone). Post(bindIgnErr(auth.CreateMilestoneForm{}), repo.NewMilestonePost) @@ -486,7 +486,7 @@ func runWeb(ctx *cli.Context) error { m.Post("/:id/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.EditMilestonePost) m.Get("/:id/:action", repo.ChangeMilestonStatus) m.Post("/delete", repo.DeleteMilestone) - }, repo.MustEnableIssues, reqRepoWriter, context.RepoRef()) + }, reqRepoWriter, context.RepoRef()) m.Group("/releases", func() { m.Get("/new", repo.NewRelease) |