summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-11-10 17:00:10 +0100
committerlpsolit%gmail.com <>2009-11-10 17:00:10 +0100
commitf7b1e5c5e27780f4bb1be7c9a44f1a91024473e4 (patch)
treea9f9024a5a0f841427a8a7235a4ee62eff819d29 /template/en/default/bug
parent5d516a6ae2f021d2e276a842c24dff74d3448c45 (diff)
downloadbugzilla-f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4.tar.gz
bugzilla-f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4.tar.xz
Bug 505038: Use $user->is_insider instead of $user->in_group(Bugzilla->params->{'insidergroup'}) - Patch by XqueZme <xquezme@gmail.com> r/a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/edit.html.tmpl2
-rw-r--r--template/en/default/bug/show.xml.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 006603f59..853ad7287 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -75,7 +75,7 @@
replytext = prefix;
[% END %]
- [% IF Param("insidergroup") && user.in_group(Param("insidergroup")) %]
+ [% IF user.is_insider %]
if (document.getElementById('isprivate_' + real_id).checked) {
document.getElementById('newcommentprivacy').checked = 'checked';
}
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index 42464aa14..f4ad0ceda 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -66,7 +66,7 @@
[% IF displayfields.long_desc %]
[% FOREACH c = bug.comments %]
- [% NEXT IF c.is_private && !user.in_group(Param("insidergroup")) %]
+ [% NEXT IF c.is_private && !user.is_insider %]
<long_desc isprivate="[% c.is_private FILTER xml %]">
<commentid>[% c.id FILTER xml %]</commentid>
<who name="[% c.author.name FILTER xml %]">[% c.author.email FILTER email FILTER xml %]</who>
@@ -81,7 +81,7 @@
[% IF displayfields.attachment %]
[% FOREACH a = bug.attachments %]
- [% NEXT IF a.isprivate && !user.in_group(Param("insidergroup")) %]
+ [% NEXT IF a.isprivate && !user.is_insider %]
<attachment
isobsolete="[% a.isobsolete FILTER xml %]"
ispatch="[% a.ispatch FILTER xml %]"