mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 18:56:11 +01:00
bug fixed for fork repos (#560)
This commit is contained in:
parent
51021585a7
commit
70900bd167
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue