summaryrefslogtreecommitdiffstats
path: root/extensions/EditComments/template/en/default
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2014-01-20 16:01:58 +0100
committerByron Jones <bjones@mozilla.com>2014-01-20 16:01:58 +0100
commit8c2232a393f38279395824d1ea2a2c730bce916e (patch)
treee2e27ce9f57b90601d607ac0439f48aa3cc90482 /extensions/EditComments/template/en/default
parent74de7ef88ebcf091dc4d2122c6baa9611ab9f7e0 (diff)
downloadbugzilla-8c2232a393f38279395824d1ea2a2c730bce916e.tar.gz
bugzilla-8c2232a393f38279395824d1ea2a2c730bce916e.tar.xz
Bug 961735: comment editing should only be enabled on editable comments
Diffstat (limited to 'extensions/EditComments/template/en/default')
-rw-r--r--extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl b/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
index 28482c6c3..89249efdf 100644
--- a/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
+++ b/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-[% IF Param('edit_comments_group') && user.in_group(Param('edit_comments_group')) %]
+[% IF Param('edit_comments_group')
+ && user.in_group(Param('edit_comments_group'))
+ && (comment.type == 0 || comment.type == 5)
+ && comment.body != ''
+%]
<span id="edit_comment_link_[% comment.count FILTER html %]">
[<a href="javascript:void(0);" id="edit_comment_edit_link_[% comment.count FILTER html %]"
onclick="editComment('[% comment.count FILTER js %]','[% comment.id FILTER js %]');">edit</a>