Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Bugzilla/Flag.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1102,11 +1102,20 @@ sub notify {
$recipients{$cc} = $ccuser;
}

# Only notify if the addressee is allowed to receive the email.
if ($addressee && $addressee->email_enabled) {
# Only notify if the addressee is allowed to receive the email
# and can see the bug (prevents short_desc leaking via Subject/body).
if (
$addressee
&& $addressee->email_enabled
&& ( (!scalar(@bug_in_groups) || $addressee->can_see_bug($bug->bug_id))
&& (!$attachment_is_private || $addressee->is_insider))
Comment thread
dklawren marked this conversation as resolved.
)
{
$recipients{$addressee->email} = $addressee;
}

return unless keys %recipients;

# Process and send notification for each recipient.
# If there are users in the CC list who don't have an account,
# use the default language for email notifications.
Expand Down
Loading