From a4ac38557733864b5a8f79e61e7f174b52e6542a Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 7 Jul 2020 15:17:48 +0200 Subject: [PATCH] =?UTF-8?q?Emp=C3=AAcher=20l'=C3=A9dition=20nom=20prenom?= =?UTF-8?q?=20par=20un=20membre=20simple=20=20-optimisation=20=C3=A9critur?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/view/edit/edit.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/module/user/view/edit/edit.php b/core/module/user/view/edit/edit.php index a5ed3d77..9f70a2f1 100755 --- a/core/module/user/view/edit/edit.php +++ b/core/module/user/view/edit/edit.php @@ -1,7 +1,4 @@ - getUser('group') > 2): $readonly = false; - else: $readonly = true; - endif;?>
getUrl(3)): ?> @@ -32,7 +29,7 @@
'off', - 'disabled' => $readonly, + 'disabled' => $this->getUser('group') > 2 ? false : true, 'label' => 'Prénom', 'value' => $this->getData(['user', $this->getUrl(2), 'firstname']) ]); ?> @@ -40,7 +37,7 @@
'off', - 'disabled' => $readonly, + 'disabled' => $this->getUser('group') > 2 ? false : true, 'label' => 'Nom', 'value' => $this->getData(['user', $this->getUrl(2), 'lastname']) ]); ?>