mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Enterprise user can reorder product properties and update product images
This commit is contained in:
@@ -15,8 +15,8 @@ class AbilityDecorator
|
||||
end
|
||||
|
||||
can [:admin, :index, :read, :create, :edit, :update, :search, :destroy], Spree::Variant
|
||||
can [:admin, :index, :read, :create, :edit, :destroy], Spree::ProductProperty
|
||||
can [:admin, :index, :read, :create, :edit, :destroy], Spree::Image
|
||||
can [:admin, :index, :read, :create, :edit, :update_positions, :destroy], Spree::ProductProperty
|
||||
can [:admin, :index, :read, :create, :edit, :update, :destroy], Spree::Image
|
||||
|
||||
can [:admin, :index, :read, :search], Spree::Taxon
|
||||
can [:admin, :index, :read, :create, :edit], Spree::Classification
|
||||
|
||||
@@ -48,11 +48,11 @@ module Spree
|
||||
end
|
||||
|
||||
it "should be able to read/write their enterprises' product properties" do
|
||||
should have_ability([:admin, :index, :read, :create, :edit, :destroy], for: Spree::ProductProperty)
|
||||
should have_ability([:admin, :index, :read, :create, :edit, :update_positions, :destroy], for: Spree::ProductProperty)
|
||||
end
|
||||
|
||||
it "should be able to read/write their enterprises' product images" do
|
||||
should have_ability([:admin, :index, :read, :create, :edit, :destroy], for: Spree::Image)
|
||||
should have_ability([:admin, :index, :read, :create, :edit, :update, :destroy], for: Spree::Image)
|
||||
end
|
||||
|
||||
it "should be able to read Taxons (in order to create classifications)" do
|
||||
|
||||
Reference in New Issue
Block a user