diff options
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 4f0ef1ed..1348c7de 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -49,7 +49,7 @@ func getForkRepository(ctx *context.Context) *models.Repository { return nil } - if !forkRepo.CanBeForked() { + if !forkRepo.CanBeForked() || !ctx.Repo.HasAccess() { ctx.Handle(404, "getForkRepository", nil) return nil } |