[BUG] Display error message if doer is unable to fork
- Backport of #2649
- Resolves #2504
(cherry picked from commit 773048afa1
)
This commit is contained in:
parent
bd71bdda26
commit
730cc56080
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ func getForkRepository(ctx *context.Context) *repo_model.Repository {
|
||||||
ctx.Data["ContextUser"] = orgs[0]
|
ctx.Data["ContextUser"] = orgs[0]
|
||||||
} else {
|
} else {
|
||||||
ctx.Data["CanForkRepo"] = false
|
ctx.Data["CanForkRepo"] = false
|
||||||
ctx.Flash.Error(ctx.Tr("repo.fork_no_valid_owners"), true)
|
ctx.RenderWithErr(ctx.Tr("repo.fork_no_valid_owners"), tplFork, nil)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue