Skip to content

Commit

Permalink
bug fixed for fork repos (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Jan 3, 2017
1 parent 10d73d3 commit 8f08ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8f08ccd

Please sign in to comment.