Commit 0856b603ed99b85dc68f995096dcb2359731edfb
1 parent
8c7cced8
Exists in
master
and in
29 other branches
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 | 4 | content_tag( |
5 | 5 | 'table', |
6 | 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 | 9 | end |
10 | 10 | ... | ... |