From a62c8440b03cd850017a3280114e1d05d1508836 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 2 Apr 2018 08:54:57 +0200 Subject: [PATCH] 0.8.3 --- core/core.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/core/core.php b/core/core.php index eee33a17..0180f598 100755 --- a/core/core.php +++ b/core/core.php @@ -1804,10 +1804,12 @@ class layout extends common { $items .= '
  • '; // Menu image - if ($this->getData(['page',$parentPageId,'disable']) === true ) - { $items .= ''; } - else - { $items .= ''; } + if ( $this->getData(['page',$parentPageId,'disable']) === true + AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) + + {$items .= '';} + else { + $items .= ''; } switch ($this->getData(['page', $parentPageId, 'typeMenu'])) { @@ -1861,10 +1863,12 @@ class layout extends common { // Menu Image - if ($this->getData(['page',$childKey,'disable']) === true ) - { $items .= ''; } - else - { $items .= ''; } + if ( $this->getData(['page',$childKey,'disable']) === true + AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) + + {$items .= '';} + else { + $items .= ''; } switch ($this->getData(['page', $childKey, 'typeMenu'])) { case '' :