diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/WebService/Group.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Group.pm b/Bugzilla/WebService/Group.pm index d24d0539b..b13039241 100644 --- a/Bugzilla/WebService/Group.pm +++ b/Bugzilla/WebService/Group.pm @@ -101,8 +101,8 @@ sub get { # Reject access if there is no sense in continuing. my $user = Bugzilla->user; - my $all_groups = $user->in_group('edituser') || $user->in_group('creategroups'); - if (!$all_groups && ! scalar(@{$user->bless_groups})) { + my $all_groups = $user->in_group('editusers') || $user->in_group('creategroups'); + if (!$all_groups && !$user->can_bless) { ThrowUserError('group_cannot_view'); } |