Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5 from c4ddna/master
Browse files Browse the repository at this point in the history
Add condition to show menu
  • Loading branch information
tvdeyen authored Aug 6, 2019
2 parents 86c5344 + eaf771d commit 9bdb911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/solidus_stock_transfers/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Engine < Rails::Engine
config.menu_items.insert idx, config.class::MenuItem.new(
[:stock_transfers],
'exchange',
condition: -> { can?(:admin, Spree::StockTransfer) },
url: :admin_stock_transfers_path
)
end
Expand Down

0 comments on commit 9bdb911

Please sign in to comment.