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.

Tighter scope on menus.

Matthew Kennedy7a5e0da17ee0
diff --git a/backend/app/controllers/spree/admin/menus_controller.rb b/backend/app/controllers/spree/admin/menus_controller.rb
index a285726240..a9aa747674 100644
--- a/backend/app/controllers/spree/admin/menus_controller.rb
+++ b/backend/app/controllers/spree/admin/menus_controller.rb
@@ -9,6 +9,10 @@ module Spree
current_store.menus
end
+ def find_resource
+ scope.find(params[:id])
+ end
+
def collection
return @collection if @collection.present?