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

Commit

Permalink
Add condition to show menu
Browse files Browse the repository at this point in the history
Add condition to show menu
  • Loading branch information
sebfie authored Dec 18, 2018
1 parent 86c5344 commit eaf771d
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 eaf771d

Please sign in to comment.