diff options
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/attachment/create.html.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/bug/show.xml.tmpl | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 72844a36e..a6eb03824 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -55,8 +55,7 @@ <em>(optional) Check each existing attachment made obsolete by your new attachment.</em><br> [% IF attachments.size %] [% FOREACH attachment = attachments %] - [% IF ((attachment.isprivate == 0) || (Param("insidergroup") - && user.in_group(Param("insidergroup")))) %] + [% IF ((attachment.isprivate == 0) || user.is_insider) %] <input type="checkbox" id="[% attachment.id %]" name="obsolete" value="[% attachment.id %]"> <a href="attachment.cgi?id=[% attachment.id %]&action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br> @@ -108,7 +107,7 @@ %] </td> </tr> - [% IF (Param("insidergroup") && user.in_group(Param("insidergroup"))) %] + [% IF user.is_insider %] <tr> <th>Privacy:</th> <td> 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 %]" |