Skip to content

Commit

Permalink
Remove stock transfers from core
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 22, 2017
1 parent 8fea56b commit 0e83b33
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 1,207 deletions.
110 changes: 0 additions & 110 deletions core/app/models/spree/stock_transfer.rb

This file was deleted.

54 changes: 0 additions & 54 deletions core/app/models/spree/transfer_item.rb

This file was deleted.

4 changes: 0 additions & 4 deletions core/lib/spree/permission_sets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
require 'spree/permission_sets/report_display'
require 'spree/permission_sets/restricted_stock_display'
require 'spree/permission_sets/restricted_stock_management'
require 'spree/permission_sets/restricted_stock_transfer_display'
require 'spree/permission_sets/restricted_stock_transfer_management'
require 'spree/permission_sets/stock_display'
require 'spree/permission_sets/stock_management'
require 'spree/permission_sets/stock_transfer_display'
require 'spree/permission_sets/stock_transfer_management'
require 'spree/permission_sets/super_user'
require 'spree/permission_sets/user_display'
require 'spree/permission_sets/user_management'

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions core/lib/spree/permission_sets/stock_transfer_display.rb

This file was deleted.

11 changes: 0 additions & 11 deletions core/lib/spree/permission_sets/stock_transfer_management.rb

This file was deleted.

3 changes: 0 additions & 3 deletions core/lib/spree/permitted_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module PermittedAttributes
:store_attributes,
:taxon_attributes,
:taxonomy_attributes,
:transfer_item_attributes,
:user_attributes,
:variant_attributes
]
Expand Down Expand Up @@ -116,8 +115,6 @@ module PermittedAttributes
:meta_description, :meta_keywords, :meta_title, :child_index
]

@@transfer_item_attributes = [:variant_id, :expected_quantity, :received_quantity]

# intentionally leaving off email here to prevent privilege escalation
# by changing a user with higher priveleges' email to one a lower-priveleged
# admin owns. creating a user with an email is handled separate at the
Expand Down
31 changes: 0 additions & 31 deletions core/lib/spree/testing_support/factories/stock_transfer_factory.rb

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0e83b33

Please sign in to comment.