bug fixed for fork repos (#563)
This commit is contained in:
parent
10d73d38e0
commit
8f08ccdb9f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue