diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-10-09 21:01:58 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-10-09 21:01:58 +0200 |
commit | b0f9f0819ceaeefa2ed2b4ba028d851d1de6146b (patch) | |
tree | 42c25087002db6cbec187a8f8d6ad111589107df /Bugzilla/Group.pm | |
parent | fca7f7eda42cecf08252d710a16c4ad001ba204b (diff) | |
parent | f9e41025a332f57b3d9cabed8418e208fbd90400 (diff) | |
download | bugzilla-b0f9f0819ceaeefa2ed2b4ba028d851d1de6146b.tar.gz bugzilla-b0f9f0819ceaeefa2ed2b4ba028d851d1de6146b.tar.xz |
merged with bugzilla/4.2
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 3f521d0f2..109f06d7f 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -190,7 +190,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 }); } |