diff options
author | David Lawrence <dkl@mozilla.com> | 2014-07-24 17:47:35 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-07-24 17:47:35 +0200 |
commit | cf3e8bc724148ac85f838b35b0b0bd72fa5f349f (patch) | |
tree | c98454811d52c92629ed32a835debebcf5732e70 /Bugzilla | |
parent | a61e957113f6f08fbf9cf5837ac4f29dbc950003 (diff) | |
download | bugzilla-cf3e8bc724148ac85f838b35b0b0bd72fa5f349f.tar.gz bugzilla-cf3e8bc724148ac85f838b35b0b0bd72fa5f349f.tar.xz |
Bug 1014345: Add Group.get RPC call
- Fixed typo in editusers group name and used $user->can_bless.
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'); } |