summaryrefslogtreecommitdiff
path: root/app/Template/user/sidebar.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-21 19:53:33 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-21 19:53:33 -0400
commit71112eb81d28b7baee09bf7d73e80a81cb38c17a (patch)
tree7bab960f33a2ed54a3976b800417ad0fb3bc5b33 /app/Template/user/sidebar.php
parente30bf47d94e84efe42c05148dddd6cec499d12ae (diff)
Allow admins to disable the 2FA for a standard user
Diffstat (limited to 'app/Template/user/sidebar.php')
-rw-r--r--app/Template/user/sidebar.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php
index f794c609..ff0fb009 100644
--- a/app/Template/user/sidebar.php
+++ b/app/Template/user/sidebar.php
@@ -42,6 +42,10 @@
<li>
<?= $this->a(t('Two factor authentication'), 'twofactor', 'index', array('user_id' => $user['id'])) ?>
</li>
+ <?php elseif ($this->userSession->isAdmin() && $user['twofactor_activated'] == 1): ?>
+ <li>
+ <?= $this->a(t('Two factor authentication'), 'twofactor', 'disable', array('user_id' => $user['id'])) ?>
+ </li>
<?php endif ?>
<li>