summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi3
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();
}