]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1014345: Add Group.get RPC call
authorDavid Lawrence <dkl@mozilla.com>
Thu, 24 Jul 2014 15:47:35 +0000 (15:47 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Thu, 24 Jul 2014 15:47:35 +0000 (15:47 +0000)
- Fixed typo in editusers group name and used $user->can_bless.

Bugzilla/WebService/Group.pm

index d24d0539b0bd0a132f90c1b23225f0d8a812ed2c..b1303924169fc90f041dd40a121f16bdd1cab3b3 100644 (file)
@@ -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');
     }