From 90af997fecb36e5cd1863f5d724a9df7a0a04118 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 8 Aug 2016 13:02:55 -0700 Subject: #3399 500 for upstream pulls page if user has forked repository --- modules/context/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/context/repo.go b/modules/context/repo.go index bc58b490eb..af18881486 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -275,8 +275,8 @@ func RepoAssignment(args ...bool) macaron.Handler { } } - // People who have push access and propose a new pull request. - if ctx.Repo.IsWriter() { + // People who have push access or have fored repository can propose a new pull request. + if ctx.Repo.IsWriter() || (ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)) { // Pull request is allowed if this is a fork repository // and base repository accepts pull requests. if repo.BaseRepo != nil { -- cgit v1.2.3