diff options
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editusers.cgi b/editusers.cgi index c7851d00a..c3ea9a49e 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -270,9 +270,8 @@ if ($action eq 'search') { ? $cgi->param('password_change_reason') : '' ); - if ($user->in_group('admin') && $otherUser->mfa && $cgi->param('mfa') eq '') { + if ($user->in_group('bz_can_disable_mfa') && $otherUser->mfa && $cgi->param('mfa') eq '') { $otherUser->set_mfa(''); - Bugzilla->audit(sprintf('%s disabled 2FA for %s', $user->login, $otherUser->login)); } $changes = $otherUser->update(); } |