Skip to content

Commit 668a701

Browse files
committed
Merge branch 'master' into add-mcaptcha
2 parents 9ed76bb + 4fc53a3 commit 668a701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/issue/view_content/comments.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
</div>
485485
</div>
486486
<div class="ui attached segment comment-body">
487-
<div class="render-content markup">
487+
<div class="render-content markup" {{if or $.Permission.IsAdmin $.HasIssuesOrPullsWritePermission (and $.IsSigned (eq $.SignedUserID .PosterID))}}data-can-edit="true"{{end}}>
488488
{{if .RenderedContent}}
489489
{{.RenderedContent|Str2html}}
490490
{{else}}

0 commit comments

Comments
 (0)