diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 64bd8a03b..e7cd672e3 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -622,6 +622,8 @@ func ViewPullFiles(ctx *context.Context) { return } getBranchData(ctx, issue) + ctx.Data["IsIssuePoster"] = ctx.IsSigned && issue.IsPoster(ctx.User.ID) + ctx.Data["IsIssueWriter"] = ctx.Repo.CanWriteIssuesOrPulls(issue.IsPull) ctx.HTML(200, tplPullFiles) } diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index 468e004c9..8a96f27ff 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -10,7 +10,7 @@