diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-10-04 17:48:23 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-10-04 17:48:23 +0200 |
commit | 20fd31fdbd177dcbd99425a1c20beaa062d07b8f (patch) | |
tree | a72019fcf28db2684e04fb2adfcd103393e93434 /Bugzilla/Group.pm | |
parent | ddb8cd75f535c7db8e072f85e44a6b1b1d9405b6 (diff) | |
download | bugzilla-20fd31fdbd177dcbd99425a1c20beaa062d07b8f.tar.gz bugzilla-20fd31fdbd177dcbd99425a1c20beaa062d07b8f.tar.xz |
Bug 788098: Queries involving group substitution crash when usevisibilitygroups is enabled
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Group.pm')
-rw-r--r-- | Bugzilla/Group.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index b7532fe09..382407748 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -189,7 +189,9 @@ sub check_members_are_visible { my $self = shift; my $user = Bugzilla->user; return if !Bugzilla->params->{'usevisibilitygroups'}; - my $is_visible = grep { $_->id == $_ } @{ $user->visible_groups_inherited }; + + my $group_id = $self->id; + my $is_visible = grep { $_ == $group_id } @{ $user->visible_groups_inherited }; if (!$is_visible) { ThrowUserError('group_not_visible', { group => $self }); } |