[9.0.19] fix private pages shown in sitemap

This commit is contained in:
fredtempez 2019-04-14 09:23:43 +02:00
parent 8d224d2ab6
commit fee1487cc4
3 changed files with 6 additions and 4 deletions

View File

@ -28,7 +28,7 @@ class common {
const GROUP_ADMIN = 3;
// Numéro de version stable
const ZWII_VERSION = '9.0.18';
const ZWII_VERSION = '9.0.19';
public static $actions = [];
public static $coreModuleIds = [

View File

@ -2,7 +2,8 @@
<?php foreach($this->getHierarchy() as $parentId => $childIds): ?>
<li>
<?php if ($this->getData(['page', $parentId, 'disable']) == false ||
$this->getData(['page', $parentId, 'block']) !== 'bar') { ?>
$this->getData(['page', $parentId, 'block']) !== 'bar' ||
$this->getUser('group') >= $module::$actions[$action]) { ?>
<a href="<?php echo helper::baseUrl() . $parentId; ?>"><?php echo $this->getData(['page', $parentId, 'title']); ?></a>
<?php } else { ?>
<?php echo $this->getData(['page', $parentId, 'title']); }?>
@ -10,7 +11,8 @@
<?php foreach($childIds as $childId): ?>
<li>
<?php if ($this->getData(['page', $childId, 'disable']) == false ||
$this->getData(['page', $childId, 'block']) == 'bar') { ?>
$this->getData(['page', $childId, 'block']) == 'bar' ||
$this->getUser('group') >= $module::$actions[$action]) { ?>
<a href="<?php echo helper::baseUrl() . $childId; ?>"><?php echo $this->getData(['page', $childId, 'title']); ?></a>
<?php } else { ?>
<?php echo $this->getData(['page', $childId, 'title']); }?>

View File

@ -1 +1 @@
[{"title":"Accueil","value":"?accueil","menu":[{"title":"Galeries","value":"?galeries"},{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"},{"title":"Menu lat\u00e9ral","value":"?menu-lateral"}]},{"title":"Priv\u00e9e","value":"?privee"},{"title":"Blog","value":"?blog"},{"title":"Site de Zwii","value":"?site-de-zwii"},{"title":"Contact","value":"?contact"}]
[{"title":"Accueil","value":"?accueil","menu":[{"title":"Galeries","value":"?galeries"},{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"},{"title":"Menu lat\u00e9ral","value":"?menu-lateral"}]},{"title":"Blog","value":"?blog"},{"title":"Site de Zwii","value":"?site-de-zwii"},{"title":"Contact","value":"?contact"}]