From 281947f5b29efc025fb20dc2e8b68bcffceb4676 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 6 Oct 2023 09:53:53 +0200 Subject: [PATCH] fix user edit profil comment hidden --- core/module/user/view/add/add.php | 2 +- core/module/user/view/edit/edit.php | 70 +++++++++++++++-------------- 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/core/module/user/view/add/add.php b/core/module/user/view/add/add.php index bb513ec..2424578 100644 --- a/core/module/user/view/add/add.php +++ b/core/module/user/view/add/add.php @@ -82,7 +82,7 @@
-
+

diff --git a/core/module/user/view/edit/edit.php b/core/module/user/view/edit/edit.php index 0d3585d..26c03c6 100644 --- a/core/module/user/view/edit/edit.php +++ b/core/module/user/view/edit/edit.php @@ -37,7 +37,7 @@
'off', - 'disabled' => $this->getUser('group') > self::GROUP_EDITOR ? false : true, + 'disabled' => $this->getUser('group') > self::GROUP_EDITOR ? false : true, 'label' => 'Nom', 'value' => $this->getData(['user', $this->getUrl(2), 'lastname']) ]); ?> @@ -98,13 +98,13 @@

-
+

-
+
getUser('group') === self::GROUP_ADMIN): ?> ($this->getUrl(2) === $this->getUser('id')), @@ -112,19 +112,21 @@ 'label' => 'Groupe', 'selected' => $this->getData(['user', $this->getUrl(2), 'group']), ]); ?> + + $this->getData(['user', $this->getUrl(2), 'group']) + ]); ?>
-
-
+
+
'Profil', 'selected' => $this->getData(['user', $this->getUrl(2), 'profil']), 'disabled' => $this->getUser('group') !== self::GROUP_ADMIN, ]); ?>
-
+
'Profil', 'selected' => $this->getData(['user', $this->getUrl(2), 'profil']), @@ -134,33 +136,33 @@
-
-
- implode("\n", $module::$userProfilsComments[self::GROUP_MEMBER]), - 'disabled' => $this->getUser('group') !== self::GROUP_ADMIN, - ]); - ?> -
-
- implode("\n", $module::$userProfilsComments[self::GROUP_EDITOR]), - 'disabled' => $this->getUser('group') !== self::GROUP_ADMIN, - ]); - ?> -
-
- 'Commentaire', - "value" => implode("\n", $module::$userProfilsComments[self::GROUP_ADMIN]), - 'disabled' => $this->getUser('group') !== self::GROUP_ADMIN, - ]); - ?> -
+
+ 'Commentaire', + 'value' => implode("\n", $module::$userProfilsComments[self::GROUP_MEMBER]), + 'disabled' => true, + + ]); + ?>
+
+ 'Commentaire', + 'value' => implode("\n", $module::$userProfilsComments[self::GROUP_EDITOR]), + 'disabled' => true, + + ]); + ?> +
+
+ 'Commentaire', + 'value' => implode("\n", $module::$userProfilsComments[self::GROUP_ADMIN]), + 'disabled' => true, + ]); + ?> +
+