From fee1487cc41c5ed1d839e8b0b6a18d539c98702c Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 14 Apr 2019 09:23:43 +0200 Subject: [PATCH] [9.0.19] fix private pages shown in sitemap --- core/core.php | 2 +- core/module/sitemap/view/index/index.php | 6 ++++-- core/vendor/tinymce/link_list.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index f27b2665..555f0fba 100644 --- a/core/core.php +++ b/core/core.php @@ -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 = [ diff --git a/core/module/sitemap/view/index/index.php b/core/module/sitemap/view/index/index.php index a96a3f62..50e4e99f 100755 --- a/core/module/sitemap/view/index/index.php +++ b/core/module/sitemap/view/index/index.php @@ -2,7 +2,8 @@ getHierarchy() as $parentId => $childIds): ?>
  • getData(['page', $parentId, 'disable']) == false || - $this->getData(['page', $parentId, 'block']) !== 'bar') { ?> + $this->getData(['page', $parentId, 'block']) !== 'bar' || + $this->getUser('group') >= $module::$actions[$action]) { ?> getData(['page', $parentId, 'title']); ?> getData(['page', $parentId, 'title']); }?> @@ -10,7 +11,8 @@
  • getData(['page', $childId, 'disable']) == false || - $this->getData(['page', $childId, 'block']) == 'bar') { ?> + $this->getData(['page', $childId, 'block']) == 'bar' || + $this->getUser('group') >= $module::$actions[$action]) { ?> getData(['page', $childId, 'title']); ?> getData(['page', $childId, 'title']); }?> diff --git a/core/vendor/tinymce/link_list.json b/core/vendor/tinymce/link_list.json index eca74d2c..03c80c65 100644 --- a/core/vendor/tinymce/link_list.json +++ b/core/vendor/tinymce/link_list.json @@ -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"}] \ No newline at end of file +[{"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"}] \ No newline at end of file