Browse Source

bug fixed for fork repos (#560)

tags/v1.2.0-rc1
Lunny Xiao GitHub 8 years ago
parent
commit
fe77dc3b7e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/pull.go

+ 1
- 1
routers/repo/pull.go View File

@@ -48,7 +48,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
return nil return nil
} }


if !forkRepo.CanBeForked() {
if !forkRepo.CanBeForked() || !forkRepo.HasAccess(ctx.User) {
ctx.Handle(404, "getForkRepository", nil) ctx.Handle(404, "getForkRepository", nil)
return nil return nil
} }


Loading…
Cancel
Save