1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-11 12:08:21 +00:00

bug fixed for fork repos (#563)

This commit is contained in:
Lunny Xiao
2017-01-03 12:40:58 +08:00
committed by GitHub
parent 10d73d38e0
commit 8f08ccdb9f

View File

@@ -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
}