mirror of
https://github.com/go-gitea/gitea
synced 2025-02-16 18:44:22 +01:00
bug fixed for fork repos (#560)
This commit is contained in:
parent
51021585a7
commit
70900bd167
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !forkRepo.CanBeForked() {
|
if !forkRepo.CanBeForked() || !forkRepo.HasAccess(ctx.User) {
|
||||||
ctx.Handle(404, "getForkRepository", nil)
|
ctx.Handle(404, "getForkRepository", nil)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue