From cf3e8bc724148ac85f838b35b0b0bd72fa5f349f Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 24 Jul 2014 15:47:35 +0000 Subject: Bug 1014345: Add Group.get RPC call - Fixed typo in editusers group name and used $user->can_bless. --- Bugzilla/WebService/Group.pm | 4 ++-- 1 file 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'); } -- cgit v1.2.3-24-g4f1b