1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00

bug fixed for fork repos (#560)

This commit is contained in:
Lunny Xiao 2017-01-03 12:41:10 +08:00 committed by GitHub
parent 51021585a7
commit 70900bd167

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
}