Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Permit `asset` param in PageBlocksController (#12831)

Gabriel Zortéa Lovison1a0822d7ee6c
diff --git a/core/lib/spree/permitted_attributes.rb b/core/lib/spree/permitted_attributes.rb
index 1eaf510b07..20b1005d08 100644
--- a/core/lib/spree/permitted_attributes.rb
+++ b/core/lib/spree/permitted_attributes.rb
@@ -127,7 +127,7 @@ module Spree
@@page_attributes = [:name, :slug, :meta_title, :meta_description, :meta_keywords]
- @@page_block_attributes = [:type, :name, :text, :position]
+ @@page_block_attributes = [:type, :name, :text, :position, :asset]
@@page_link_attributes = [:linkable_id, :linkable_type, :position, :label, :url, :open_in_new_tab]