mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Add spree user as admin of Enterprise 2 in seed
This commit is contained in:
@@ -193,6 +193,8 @@ namespace :openfoodnetwork do
|
||||
.where('spree_products.supplier_id = ?', enterprise2.id)
|
||||
|
||||
CreateOrderCycle.new(enterprise2, variants).call
|
||||
|
||||
EnterpriseRole.create!(user: Spree::User.first, enterprise: enterprise2)
|
||||
end
|
||||
|
||||
# Creates an order cycle for the provided enterprise and selecting all the
|
||||
|
||||
Reference in New Issue
Block a user