From f422a115f461472db6892da9142e930c67e63128 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Thu, 5 Mar 2020 19:57:18 -0600 Subject: Issue writers perms can modify issues (#10623) Signed-off-by: jolheiser --- routers/repo/pull.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/repo/pull.go') diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 64bd8a03b8..e7cd672e3c 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) } -- cgit v1.2.3