summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-10-29 17:04:56 +0100
committerByron Jones <glob@mozilla.com>2015-10-29 17:04:56 +0100
commitb6d9211091e8d35f638b67b2b25fb3b00fb93134 (patch)
tree2d69ff90d8f2aa2255812b621e09bee6361b6c67 /editusers.cgi
parent175f9c1022672ae8d47c93ad0cf31084eb868ecb (diff)
downloadbugzilla-b6d9211091e8d35f638b67b2b25fb3b00fb93134.tar.gz
bugzilla-b6d9211091e8d35f638b67b2b25fb3b00fb93134.tar.xz
Bug 1213757 - delegate password and 2fa resets to servicedesk
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();
}