From 9465a77fad2f80e4e3615b0aa0af36bc5da11122 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 4 Aug 2015 21:05:04 +0000 Subject: Bug 1190601: Should be able to edit comments made from editing a current attachment --- .../en/default/hook/bug/comments-a_comment-end.html.tmpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 89249efdf..cf54c71ed 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,10 +6,13 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% IF Param('edit_comments_group') +[% IF comment.body != '' + && Param('edit_comments_group') && user.in_group(Param('edit_comments_group')) - && (comment.type == 0 || comment.type == 5) - && comment.body != '' + && (comment.type == constants.CMT_NORMAL + || comment.type == constants.CMT_DUPE_OF + || comment.type == constants.CMT_ATTACHMENT_CREATED + || comment.type == constants.CMT_ATTACHMENT_UPDATED) %] [