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 /templates | |
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 'templates')
-rw-r--r-- | templates/repo/issue/view_content/context_menu.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index 468e004c91..8a96f27ff9 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -10,7 +10,7 @@ <div class="item context clipboard" data-clipboard-text="{{Printf "%s%s/issues/%d#%s" AppUrl .ctx.Repository.FullName .ctx.Issue.Index .item.HashTag}}">{{.ctx.i18n.Tr "repo.issues.context.copy_link"}}</div> {{end}} <div class="item context quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.ID}}">{{.ctx.i18n.Tr "repo.issues.context.quote_reply"}}</div> - {{if or .ctx.Permission.IsAdmin (eq .item.Poster.ID .ctx.SignedUserID)}} + {{if or .ctx.Permission.IsAdmin .ctx.IsIssuePoster .ctx.IsIssueWriter}} <div class="divider"></div> <div class="item context edit-content">{{.ctx.i18n.Tr "repo.issues.context.edit"}}</div> {{if .delete}} |