mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Add same changes from issues page to milestone->issues page (#6328)
This commit is contained in:
parent
583968f274
commit
c55bdca562
4 changed files with 35 additions and 11 deletions
|
@ -260,5 +260,13 @@ func MilestoneIssuesAndPulls(ctx *context.Context) {
|
|||
|
||||
issues(ctx, milestoneID, util.OptionalBoolNone)
|
||||
|
||||
perm, err := models.GetUserRepoPermission(ctx.Repo.Repository, ctx.User)
|
||||
if err != nil {
|
||||
ctx.ServerError("GetUserRepoPermission", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["CanWriteIssues"] = perm.CanWriteIssuesOrPulls(false)
|
||||
ctx.Data["CanWritePulls"] = perm.CanWriteIssuesOrPulls(true)
|
||||
|
||||
ctx.HTML(200, tplMilestoneIssues)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue