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']) ]); ?>