mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:01:24 +01:00
Merge pull request '[BUG] Display error message if doer is unable to fork' (#2671) from gusted/forgejo-bp-2649 into v1.21/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2671 Reviewed-by: Otto <otto@codeberg.org>
This commit is contained in:
commit
02c9304247
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]
|
||||
} else {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue