diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/BugMail.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 2526ffada..22f97d365 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -238,6 +238,11 @@ sub ProcessOneBug($) { $old = FormatTimeUnit($old); $new = FormatTimeUnit($new); } + if ($attachid) { + SendSQL("SELECT isprivate FROM attachments + WHERE attach_id = $attachid"); + $diffpart->{'isprivate'} = FetchOneColumn(); + } $difftext = FormatTriple($what, $old, $new); $diffpart->{'header'} = $diffheader; $diffpart->{'fieldname'} = $fieldname; @@ -772,6 +777,11 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) { if ($user->groups->{Param("timetrackinggroup")}) { $add_diff = 1; } + } elsif (($diff->{'isprivate'}) + && Param('insidergroup') + && !($user->groups->{Param('insidergroup')}) + ) { + $add_diff = 0; } else { $add_diff = 1; } |