forked from kevadesu/forgejo
Backport #28145 by @yp05327
Before:

After:

Co-authored-by: yp05327 <576951401@qq.com>
(cherry picked from commit 9bfee5014b
)
This commit is contained in:
parent
2f8672c4dc
commit
c5bb91a9eb
4 changed files with 16 additions and 0 deletions
|
@ -560,6 +560,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
|
|||
ctx.Data["CanWriteCode"] = ctx.Repo.CanWrite(unit_model.TypeCode)
|
||||
ctx.Data["CanWriteIssues"] = ctx.Repo.CanWrite(unit_model.TypeIssues)
|
||||
ctx.Data["CanWritePulls"] = ctx.Repo.CanWrite(unit_model.TypePullRequests)
|
||||
ctx.Data["CanWriteActions"] = ctx.Repo.CanWrite(unit_model.TypeActions)
|
||||
|
||||
canSignedUserFork, err := repo_module.CanUserForkRepo(ctx, ctx.Doer, ctx.Repo.Repository)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue