diff options
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index aa3baa243..293b18d3e 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -453,7 +453,8 @@ sub bless_groups { # Get all groups for the user where: # + They have direct bless privileges # + They are a member of a group that inherits bless privs. - my @group_ids = (map {$_->id} @{ $self->groups }) || (-1); + my @group_ids = map {$_->id} @{ $self->groups }; + @group_ids = (-1) if !@group_ids; my $query = 'SELECT DISTINCT groups.id FROM groups, user_group_map, group_group_map AS ggm |