mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Remove associated abilities
This commit is contained in:
@@ -234,7 +234,6 @@ module Spree
|
||||
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
|
||||
|
||||
can [:admin, :index, :guide, :import, :save, :save_data,
|
||||
:validate_data, :reset_absent_products], ProductImport::ProductImporter
|
||||
|
||||
@@ -399,11 +399,6 @@ describe Spree::Ability do
|
||||
is_expected.to have_ability([:admin, :index, :read, :search], for: Spree::Taxon)
|
||||
end
|
||||
|
||||
it "should be able to read/write Classifications on a product" do
|
||||
is_expected.to have_ability([:admin, :index, :read, :create, :edit],
|
||||
for: Spree::Classification)
|
||||
end
|
||||
|
||||
it "should be able to read/write their enterprises' producer properties" do
|
||||
is_expected.to have_ability(
|
||||
[:admin, :index, :read, :create, :edit, :update_positions,
|
||||
|
||||
Reference in New Issue
Block a user