]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 677081: Private comments should remain visible by their author
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 8 Aug 2011 16:13:18 +0000 (18:13 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 8 Aug 2011 16:13:18 +0000 (18:13 +0200)
r=glob a=LpSolit

template/en/default/bug/comments.html.tmpl

index 208ea092a3bdab7c38a8adbb90c4b0f4a3fc9738..cbd1d0b836294b84e9087acbc5416615b5a8317f 100644 (file)
 [%############################################################################%]
 
 [% BLOCK a_comment %]
-  [% RETURN IF comment.is_private AND ! user.is_insider %]
+  [% RETURN IF comment.is_private AND NOT (user.is_insider || user.id == comment.author.id) %]
   [% comment_text = comment.body_full %]
   [% RETURN IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %]