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 49f25260..067e3c2a 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() || !forkRepo.HasAccess(ctx.User) { + if !forkRepo.CanBeForked() || !forkRepo.HasAccess(ctx.User.ID) { ctx.Handle(404, "getForkRepository", nil) return nil } |