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
|
@ -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…
Reference in New Issue