Skip to content

Commit 8f08ccd

Browse files
authored
bug fixed for fork repos (#563)
1 parent 10d73d3 commit 8f08ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
4848
return nil
4949
}
5050

51-
if !forkRepo.CanBeForked() {
51+
if !forkRepo.CanBeForked() || !forkRepo.HasAccess(ctx.User) {
5252
ctx.Handle(404, "getForkRepository", nil)
5353
return nil
5454
}

0 commit comments

Comments
 (0)