From 7c8175a24dbc9794cc47ebe3c83e08056b9ec51f Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 25 Oct 2020 08:35:34 +0100 Subject: [PATCH] affiche le droit courant modif par admin --- core/module/user/view/edit/edit.php | 58 ++++++++++++++--------------- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/core/module/user/view/edit/edit.php b/core/module/user/view/edit/edit.php index 485411b0..661c7a28 100644 --- a/core/module/user/view/edit/edit.php +++ b/core/module/user/view/edit/edit.php @@ -57,36 +57,34 @@ 'label' => 'Adresse mail', 'value' => $this->getData(['user', $this->getUrl(2), 'mail']) ]); ?> - getUser('group') === self::GROUP_ADMIN): ?> - ($this->getUrl(2) === $this->getUser('id')), - 'help' => ($this->getUrl(2) === $this->getUser('id') ? 'Impossible de modifier votre propre groupe.' : ''), - 'label' => 'Groupe', - 'selected' => $this->getData(['user', $this->getUrl(2), 'group']) - ]); ?> -
Autorisations :
- - - - - + $this->getUrl(2) === $this->getUser('id') OR $this->getUser('group') < self::GROUP_ADMIN , + 'help' => ($this->getUrl(2) === $this->getUser('id') ? 'Impossible de modifier votre propre groupe.' : ''), + 'label' => 'Groupe', + 'selected' => $this->getData(['user', $this->getUrl(2), 'group']) + ]); ?> +
Autorisations :
+ + + +