mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	#3399 500 for upstream pulls page if user has forked repository
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user