From aa5199db7f0915e0115ac302fa4d3e0552b0a4b0 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 29 Nov 2017 16:12:14 -0800 Subject: Allow administrators to update username of remote users --- app/Template/user_modification/show.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Template/user_modification') 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 @@
form->label(t('Username'), 'username') ?> - form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?> + form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 && !$this->user->isAdmin() ? 'readonly' : '', 'maxlength="50"')) ?> form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_name') ? '' : 'readonly')) ?> -- cgit v1.2.3