diff options
author | Byron Jones <glob@mozilla.com> | 2015-11-18 05:22:41 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-11-18 05:22:41 +0100 |
commit | ff70ecdae41e377659049612f5431fd911fc7e92 (patch) | |
tree | a68093fa4b6d2f4cf0d2e6f9d40181aa2474157e | |
parent | 8f11979d6dce78de1ed53488d4ddeec32dd3bda3 (diff) | |
download | bugzilla-ff70ecdae41e377659049612f5431fd911fc7e92.tar.gz bugzilla-ff70ecdae41e377659049612f5431fd911fc7e92.tar.xz |
Bug 1225713 - allow servicedesk group members to edit insidergroup users
-rwxr-xr-x | editusers.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi index c3ea9a49e..318b858e5 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -772,8 +772,9 @@ sub check_user { if (!$user->in_group('admin')) { my $insider_group = Bugzilla->params->{insidergroup}; + my $can_edit_insider = $user->in_group($insider_group) || $user->in_group('servicedesk'); if ($otherUser->in_group('admin') - || ($otherUser->in_group($insider_group) && !$user->in_group($insider_group)) + || ($otherUser->in_group($insider_group) && !$can_edit_insider) ) { ThrowUserError('auth_failure', { action => 'modify', |