Commit 0856b603ed99b85dc68f995096dcb2359731edfb

Authored by Antonio Terceiro
1 parent 8c7cced8

ActionItem1165: don't list private content on sitemap

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/folder_helper.rb
@@ -4,7 +4,7 @@ module FolderHelper @@ -4,7 +4,7 @@ module FolderHelper
4 content_tag( 4 content_tag(
5 'table', 5 'table',
6 content_tag('tr', content_tag('th', _('Title')) + content_tag('th', _('Last update'))) + 6 content_tag('tr', content_tag('th', _('Title')) + content_tag('th', _('Last update'))) +
7 - articles.map {|item| display_article_in_listing(item, recursive, 0)}.join('') 7 + articles.select { |item| item.public? }.map {|item| display_article_in_listing(item, recursive, 0)}.join('')
8 ) 8 )
9 end 9 end
10 10