bug fixed for fork repos (#560)

tokarchuk/v1.17
Lunny Xiao 8 years ago committed by GitHub
parent 51021585a7
commit 70900bd167
  1. 2
      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
}

Loading…
Cancel
Save