diff options
author | Download-Fritz <download-fritz@outlook.com> | 2016-02-19 20:48:32 +0100 |
---|---|---|
committer | Download-Fritz <download-fritz@outlook.com> | 2016-02-19 20:48:32 +0100 |
commit | a1b28fc33c4a685ffe9a07f67fa6786ec27524bb (patch) | |
tree | 0caf9e71fab436c0128cf5904944f4c128a38d86 /cmd | |
parent | a467184e13e4e3867031c191263dc0adaec2673c (diff) | |
download | gitea-a1b28fc33c4a685ffe9a07f67fa6786ec27524bb.tar.gz gitea-a1b28fc33c4a685ffe9a07f67fa6786ec27524bb.zip |
Rename MustEnablePulls() to MustAllowPulls() and simplify the contained check to AllowsPulls().
Diffstat (limited to 'cmd')
-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 5bfbdb4495..072d31917a 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -470,7 +470,7 @@ func runWeb(ctx *cli.Context) { m.Post("/delete", repo.DeleteRelease) }, reqRepoAdmin, middleware.RepoRef()) - m.Combo("/compare/*", repo.MustEnablePulls).Get(repo.CompareAndPullRequest). + m.Combo("/compare/*", repo.MustAllowPulls).Get(repo.CompareAndPullRequest). Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost) }, reqSignIn, middleware.RepoAssignment(), repo.MustBeNotBare) @@ -503,7 +503,7 @@ func runWeb(ctx *cli.Context) { m.Get("/commits", middleware.RepoRef(), repo.ViewPullCommits) m.Get("/files", middleware.RepoRef(), repo.ViewPullFiles) m.Post("/merge", reqRepoAdmin, repo.MergePullRequest) - }, repo.MustEnablePulls) + }, repo.MustAllowPulls) m.Group("", func() { m.Get("/src/*", repo.Home) |