Skip to content

Commit

Permalink
bug fixed for fork repos (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Jan 3, 2017
1 parent 5102158 commit 70900bd
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 70900bd

Please sign in to comment.