summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/users/userdata.html.tmpl2
-rw-r--r--template/en/default/global/user-error.html.tmpl4
2 files changed, 5 insertions, 1 deletions
diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl
index a455ef84b..449a1b143 100644
--- a/template/en/default/admin/users/userdata.html.tmpl
+++ b/template/en/default/admin/users/userdata.html.tmpl
@@ -126,7 +126,7 @@
<tr>
<th><label for="mfa">Two-factor Auth:</label></th>
<td>
- [% IF user.in_group('admin') %]
+ [% IF user.in_group('bz_can_disable_mfa') %]
[% IF otheruser.mfa %]
<select name="mfa" value="mfa">
<option value="">Disable</option>
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 66573ecb1..6996832aa 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1220,6 +1220,10 @@
<br>
The QR code has been deleted - please generate and scan a new code.
+ [% ELSIF error == "mfa_disable_denied" %]
+ [% title = "Change Denied" %]
+ You do not have permission to disable MFA for other users.
+
[% ELSIF error == "migrate_config_created" %]
The file <kbd>[% file FILTER html %]</kbd> contains configuration
variables that must be set before continuing with the migration.