diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-03-05 19:57:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 09:57:18 +0800 |
commit | f422a115f461472db6892da9142e930c67e63128 (patch) | |
tree | 4094ef8e0464498170a92f5557c6c5455ec8a9e1 /routers/repo/pull.go | |
parent | f5a20250ae65c422a8f5de3415f484bca087abe1 (diff) | |
download | gitea-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.go | 2 |
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) } |