summaryrefslogtreecommitdiffstats
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-03-05 19:57:18 -0600
committerGitHub <noreply@github.com>2020-03-06 09:57:18 +0800
commitf422a115f461472db6892da9142e930c67e63128 (patch)
tree4094ef8e0464498170a92f5557c6c5455ec8a9e1 /routers/repo/pull.go
parentf5a20250ae65c422a8f5de3415f484bca087abe1 (diff)
downloadgitea-f422a115f461472db6892da9142e930c67e63128.tar.gz
gitea-f422a115f461472db6892da9142e930c67e63128.zip
Issue writers perms can modify issues (#10623)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go2
1 files changed, 2 insertions, 0 deletions
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)
}