From da191eff1b3b4d4b5de5c270aff4f20f355f1579 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Jan 2017 11:22:05 +0800 Subject: [PATCH] bug fixed for fork repos --- routers/repo/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 5e51fda4951d..583f3b0a355f 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -48,7 +48,7 @@ func getForkRepository(ctx *context.Context) *models.Repository { return nil } - if !forkRepo.CanBeForked() { + if !forkRepo.CanBeForked() || !forkRepo.HasAccess(ctx.User) { ctx.Handle(404, "getForkRepository", nil) return nil }