diff options
author | Frédéric Guillot <fred@kanboard.net> | 2017-11-29 16:12:14 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2017-11-29 16:12:14 -0800 |
commit | aa5199db7f0915e0115ac302fa4d3e0552b0a4b0 (patch) | |
tree | df97185319f6d4c5dea10efeba311dbc5f1543e6 /app/Template/user_modification | |
parent | 0a4dd4369340f31056b2f2007e0d1d22d67964f9 (diff) |
Allow administrators to update username of remote users
Diffstat (limited to 'app/Template/user_modification')
-rw-r--r-- | app/Template/user_modification/show.php | 2 |
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')) ?> |