app/commands/decidim/system/create_default_pages.rb in decidim-system-0.23.6 vs app/commands/decidim/system/create_default_pages.rb in decidim-system-0.24.0.rc1
- old
+ new
@@ -20,9 +20,10 @@
Decidim::StaticPage::DEFAULT_PAGES.map do |slug|
Decidim::StaticPage.find_or_create_by!(organization: organization, slug: slug) do |page|
page.title = localized_attribute(slug, :title)
page.content = localized_attribute(slug, :content)
page.show_in_footer = true
+ page.allow_public_access = true if slug == "terms-and-conditions"
end
end
end
private