diff options
author | Download-Fritz <download-fritz@outlook.com> | 2016-02-19 20:33:06 +0100 |
---|---|---|
committer | Download-Fritz <download-fritz@outlook.com> | 2016-02-19 20:33:06 +0100 |
commit | a467184e13e4e3867031c191263dc0adaec2673c (patch) | |
tree | e01e62d7085e72e4a8f02142c1a5fe3571e56c4d /modules | |
parent | 2fdf8fc938295b95cbe6efb7cddb1b87c2fb81ee (diff) | |
download | gitea-a467184e13e4e3867031c191263dc0adaec2673c.tar.gz gitea-a467184e13e4e3867031c191263dc0adaec2673c.zip |
#2505 Allow to fork and disallow to create PRs for mirrors.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 9ceb9903dd..fb636d93fa 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -167,7 +167,7 @@ func RepoAssignment(args ...bool) macaron.Handler { ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner() ctx.Data["IsRepositoryAdmin"] = ctx.Repo.IsAdmin() ctx.Data["IsRepositoryPusher"] = ctx.Repo.IsPusher() - ctx.Data["CanPullRequest"] = ctx.Repo.IsAdmin() && repo.BaseRepo != nil && repo.BaseRepo.EnablePulls + ctx.Data["CanPullRequest"] = ctx.Repo.IsAdmin() && repo.BaseRepo != nil && repo.BaseRepo.AllowsPulls() ctx.Data["DisableSSH"] = setting.DisableSSH ctx.Data["CloneLink"] = repo.CloneLink() |