diff options
-rwxr-xr-x | show_bug.cgi | 4 | ||||
-rw-r--r-- | template/en/default/bug/show.xml.tmpl | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 4803ff67b..03cf6f60d 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -113,6 +113,10 @@ if ($cgi->param("field")) { @fieldlist = $cgi->param("field"); } +unless (UserInGroup(Param("timetrackinggroup"))) { + @fieldlist = grep($_ !~ /_time$/, @fieldlist); +} + foreach (@fieldlist) { $displayfields{$_} = 1; } diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl index 97d3dee67..37cead53d 100644 --- a/template/en/default/bug/show.xml.tmpl +++ b/template/en/default/bug/show.xml.tmpl @@ -53,6 +53,7 @@ [% IF displayfields.long_desc %] [% FOREACH c = bug.longdescs %] + [% NEXT IF c.isprivate && !UserInGroup(Param("insidergroup")) %] <long_desc> <who>[% c.email FILTER xml %]</who> <bug_when>[% c.time FILTER time FILTER xml %]</bug_when> @@ -63,6 +64,7 @@ [% IF displayfields.attachment %] [% FOREACH a = bug.attachments %] + [% NEXT IF a.isprivate && !UserInGroup(Param("insidergroup")) %] <attachment> <attachid>[% a.attachid %]</attachid> <date>[% a.date FILTER time FILTER xml %]</date> |