]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1183227: Comment tagging doesn't work if Test::Taint is not installed
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 6 Aug 2015 15:01:57 +0000 (17:01 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 6 Aug 2015 15:01:57 +0000 (17:01 +0200)
r=gerv a=dkl

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

index f4f79ec5c0f4b8112b1a690dd34edbc518d428ae..931716f76f80ece084553f46addea94ac9d14b93 100644 (file)
@@ -47,6 +47,7 @@
 [% DEFAULT mode = "show" %]
 [% user_cache = template_cache.users %]
 [% can_edit_comments = bug.check_can_change_field('longdesc', 0, 1) %]
+[% can_tag_comments = feature_enabled('jsonrpc') AND user.can_tag_comments %]
 
 <!-- This auto-sizes the comments and positions the collapse/expand links 
      to the right. -->
               <span class="bz_collapsed_actions">
             [% END %]
             [% IF can_edit_comments %]
-              [% IF user.can_tag_comments %]
+              [% IF can_tag_comments %]
                 [<a href="#"
                     onclick="YAHOO.bugzilla.commentTagging.toggle([% comment.id %], [% comment.count %]);return false">tag</a>]
               [% END %]