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
This commit is contained in:
bzrmirror%bugzilla.org 2014-07-24 16:00:48 +00:00
parent 121f7b8a87
commit d485e5c714
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
9086
9087

View File

@ -1 +1 @@
a61e957113f6f08fbf9cf5837ac4f29dbc950003
cf3e8bc724148ac85f838b35b0b0bd72fa5f349f

View 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');
}