From 8c2232a393f38279395824d1ea2a2c730bce916e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 20 Jan 2014 23:01:58 +0800 Subject: Bug 961735: comment editing should only be enabled on editable comments --- .../template/en/default/hook/bug/comments-a_comment-end.html.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'extensions/EditComments') 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 != '' +%] [edit -- cgit v1.2.3-24-g4f1b