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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Use new simplified permissions check for reset action.
Matthew Kennedydc05960a0dbc
diff --git a/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb b/api/app/controllers/spree/api/v2/platform/digital_links_controller.rbindex faa255f479..f17b293fd6 100644--- a/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb+++ b/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb@@ -3,8 +3,6 @@ module Spreemodule V2module Platformclass DigitalLinksController < ResourceController- before_action -> { doorkeeper_authorize! :write, :admin }, only: WRITE_ACTIONS << :reset-def resetspree_authorize! :update, @digital_link if spree_current_user.present?