From 70900bd16724ccb73d8b69e830f046b4815c9595 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Jan 2017 12:41:10 +0800 Subject: [PATCH] bug fixed for fork repos (#560) --- 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 }