diff --git a/core/module/user/user.php b/core/module/user/user.php index c01cd184..083edb75 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -337,7 +337,7 @@ class user extends common $redirect = helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()); } // Redirection si retour en arrière possible - elseif ($this->getUser('group') === 3) { + elseif ($this->getUser('group') === self::GROUP_ADMIN) { $redirect = helper::baseUrl() . 'user'; } // Redirection normale diff --git a/core/module/user/view/edit/edit.php b/core/module/user/view/edit/edit.php index b5f4983d..0d3585d9 100644 --- a/core/module/user/view/edit/edit.php +++ b/core/module/user/view/edit/edit.php @@ -29,7 +29,7 @@
'off', - 'disabled' => $this->getUser('group') > 2 ? false : true, + 'disabled' => $this->getUser('group') > self::GROUP_EDITOR ? false : true, 'label' => 'Prénom', 'value' => $this->getData(['user', $this->getUrl(2), 'firstname']) ]); ?> @@ -37,7 +37,7 @@
'off', - 'disabled' => $this->getUser('group') > 2 ? false : true, + 'disabled' => $this->getUser('group') > self::GROUP_EDITOR ? false : true, 'label' => 'Nom', 'value' => $this->getData(['user', $this->getUrl(2), 'lastname']) ]); ?>