mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove dead permission to access StockLocation
We don't have any UI to edit stock locations. So this ability is unused.
This commit is contained in:
@@ -35,7 +35,6 @@ module Spree
|
||||
can [:read, :update, :destroy], Spree::User, id: user.id
|
||||
can [:index, :read], State
|
||||
can [:index, :read], StockItem
|
||||
can [:index, :read], StockLocation
|
||||
can [:index, :read], StockMovement
|
||||
can [:index, :read], Taxon
|
||||
can [:index, :read], Variant
|
||||
|
||||
@@ -125,13 +125,6 @@ RSpec.describe Spree::Ability do
|
||||
end
|
||||
end
|
||||
|
||||
context 'for StockLocation' do
|
||||
let(:resource) { Spree::StockLocation.new }
|
||||
context 'requested by any user' do
|
||||
it_should_behave_like 'read only'
|
||||
end
|
||||
end
|
||||
|
||||
context 'for StockMovement' do
|
||||
let(:resource) { Spree::StockMovement.new }
|
||||
context 'requested by any user' do
|
||||
|
||||
Reference in New Issue
Block a user