diff --git a/core/class/layout.class.php b/core/class/layout.class.php index 721967c7..db2d044d 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -330,7 +330,7 @@ class layout extends common // Affichage du lien de connexion if ( ($this->getData(['theme', 'footer', 'loginLink']) - and $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') + and $this->isConnected() === false ) or $this->getUrl(0) === 'theme' ) { @@ -493,7 +493,7 @@ class layout extends common // Lien de connexion if ( ($this->getData(['theme', 'menu', 'loginLink']) - and $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') + and $this->isConnected() === false ) or $this->getUrl(0) === 'theme' ) { @@ -580,9 +580,9 @@ class layout extends common if ( ($this->getData(['page', $parentPageId, 'disable']) === true - and $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') + and $this->isConnected() === false ) or ($this->getData(['page', $parentPageId, 'disable']) === true - and $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') + and $this->isConnected() === true and $this->getUser('group') < self::GROUP_EDITOR ) ) { @@ -646,9 +646,9 @@ class layout extends common $items .= '