diff --git a/core/class/layout.class.php b/core/class/layout.class.php index 6d31836..e8e0dbf 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' ) { @@ -547,7 +547,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' ) { @@ -592,9 +592,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 ) ) { @@ -658,9 +658,9 @@ class layout extends common $items .= '
  • '; if ( ($this->getData(['page', $childKey, 'disable']) === true - and $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') + and $this->isConnected() === false ) or ($this->getData(['page', $childKey, 'disable']) === true - and $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') + and $this->isConnected() === true and $this->getUser('group') < self::GROUP_EDITOR ) ) { @@ -754,7 +754,7 @@ class layout extends common $items .= '