diff options
author | Unknwon <u@gogs.io> | 2016-02-19 15:04:50 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-19 15:04:50 -0500 |
commit | 2408df3f3549bdddb16c7ce01e9cf5a2e18c0df5 (patch) | |
tree | a86642f774a8bd6a30ebc0b85575d2c1594c83b7 /cmd | |
parent | 736a46dff96430f4ee43e6a2eb1bccbccaa611d4 (diff) | |
parent | a1b28fc33c4a685ffe9a07f67fa6786ec27524bb (diff) | |
download | gitea-2408df3f3549bdddb16c7ce01e9cf5a2e18c0df5.tar.gz gitea-2408df3f3549bdddb16c7ce01e9cf5a2e18c0df5.zip |
Merge pull request #2663 from Download-Fritz/MirrorForks
#2505 Allow to fork and disallow to create PRs for mirrors.
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) |