Skip to content

Commit 1964520

Browse files
committed
bug fixed for fork repos
1 parent 5102158 commit 1964520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/pull.go

+1-1
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)