summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2017-11-29 16:12:14 -0800
committerFrédéric Guillot <fred@kanboard.net>2017-11-29 16:12:14 -0800
commitaa5199db7f0915e0115ac302fa4d3e0552b0a4b0 (patch)
treedf97185319f6d4c5dea10efeba311dbc5f1543e6 /app
parent0a4dd4369340f31056b2f2007e0d1d22d67964f9 (diff)
Allow administrators to update username of remote users
Diffstat (limited to 'app')
-rw-r--r--app/Template/user_modification/show.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/user_modification/show.php b/app/Template/user_modification/show.php
index fd90d915..b296371f 100644
--- a/app/Template/user_modification/show.php
+++ b/app/Template/user_modification/show.php
@@ -8,7 +8,7 @@
<fieldset>
<legend><?= t('Profile') ?></legend>
<?= $this->form->label(t('Username'), 'username') ?>
- <?= $this->form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
+ <?= $this->form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 && !$this->user->isAdmin() ? 'readonly' : '', 'maxlength="50"')) ?>
<?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_name') ? '' : 'readonly')) ?>