mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 14:08:01 +02:00
bug fixed for fork repos (#560)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user