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.

Added missing permitted attributes

Damian Legawiec6e82a63a2d7d
diff --git a/core/lib/spree/permitted_attributes.rb b/core/lib/spree/permitted_attributes.rb
index cd3a2cf2da..178baa6c49 100644
--- a/core/lib/spree/permitted_attributes.rb
+++ b/core/lib/spree/permitted_attributes.rb
@@ -42,7 +42,7 @@ module Spree
:id, :firstname, :lastname, :first_name, :last_name,
:address1, :address2, :city, :country_iso, :country_id, :state_id,
:zipcode, :phone, :state_name, :alternative_phone, :company,
- :user_id, :deleted_at, :label,
+ :user_id, :deleted_at, :label, :quick_checkout,
{ country: [:iso, :name, :iso3, :iso_name],
state: [:name, :abbr] }
]
@@ -154,7 +154,7 @@ module Spree
]
@@user_attributes = [:email, :bill_address_id, :ship_address_id, :password, :first_name, :last_name,
- :password_confirmation, :selected_locale, :avatar,
+ :password_confirmation, :selected_locale, :avatar, :accepts_email_marketing, :phone,
{ public_metadata: {}, private_metadata: {}, tag_list: [] }]
@@variant_attributes = [