From d485e5c71488892d015bd11e815e7393f0edefa1 Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Thu, 24 Jul 2014 16:00:48 +0000 Subject: [PATCH] Bug 1014345: Add Group.get RPC call - Fixed typo in editusers group name and used $user->can_bless. git-svn-id: svn://10.0.0.236/trunk@265469 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/.gitrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/WebService/Group.pm | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 28ae3cbb91f..ddef961be3d 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -9086 \ No newline at end of file +9087 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/.gitrev b/mozilla/webtools/bugzilla/.gitrev index 4a373ef4b8b..a8848dcf303 100644 --- a/mozilla/webtools/bugzilla/.gitrev +++ b/mozilla/webtools/bugzilla/.gitrev @@ -1 +1 @@ -a61e957113f6f08fbf9cf5837ac4f29dbc950003 \ No newline at end of file +cf3e8bc724148ac85f838b35b0b0bd72fa5f349f \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/WebService/Group.pm b/mozilla/webtools/bugzilla/Bugzilla/WebService/Group.pm index d24d0539b0b..b1303924169 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/WebService/Group.pm +++ b/mozilla/webtools/bugzilla/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'); }