mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 348070: An arrayref is always "true" - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> a=myk
This commit is contained in:
parent
afeb6c182c
commit
61d8101a5c
@ -838,12 +838,14 @@ sub notify {
|
||||
# to make sure we don't send email about it to unauthorized users
|
||||
# on the request type's CC: list, so we have to trawl the list for users
|
||||
# not in those groups or email addresses that don't have an account.
|
||||
if ($bug->groups || $attachment_is_private) {
|
||||
my @bug_in_groups = grep {$_->{'ison'} || $_->{'mandatory'}} @{$bug->groups};
|
||||
|
||||
if (scalar(@bug_in_groups) || $attachment_is_private) {
|
||||
my @new_cc_list;
|
||||
foreach my $cc (split(/[, ]+/, $flag->type->cc_list)) {
|
||||
my $ccuser = Bugzilla::User->new_from_login($cc) || next;
|
||||
|
||||
next if ($bug->groups && !$ccuser->can_see_bug($bug->bug_id));
|
||||
next if (scalar(@bug_in_groups) && !$ccuser->can_see_bug($bug->bug_id));
|
||||
next if $attachment_is_private
|
||||
&& Bugzilla->params->{"insidergroup"}
|
||||
&& !$ccuser->in_group(Bugzilla->params->{"insidergroup"});
|
||||
|
Loading…
Reference in New Issue
Block a user