From: David Lawrence Date: Thu, 24 Jul 2014 15:47:35 +0000 (+0000) Subject: Bug 1014345: Add Group.get RPC call X-Git-Tag: bugzilla-4.5.5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf3e8bc724148ac85f838b35b0b0bd72fa5f349f;p=thirdparty%2Fbugzilla.git Bug 1014345: Add Group.get RPC call - Fixed typo in editusers group name and used $user->can_bless. --- diff --git a/Bugzilla/WebService/Group.pm b/Bugzilla/WebService/Group.pm index d24d0539b0..b130392416 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'); }