Commit cf3e8bc7 authored by David Lawrence's avatar David Lawrence

Bug 1014345: Add Group.get RPC call

- Fixed typo in editusers group name and used $user->can_bless.
parent a61e9571
......@@ -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');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment