Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
Merge pull request #92 from orbcoding/fix-admin-sub-menu-entry-condition
Browse files Browse the repository at this point in the history
Fix admin sub menu entry visibility condition
  • Loading branch information
mamhoff authored Nov 30, 2023
2 parents 6387fd0 + ec7c6c7 commit 8921db4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<% if can? :admin, SolidusFriendlyPromotions::PromotionCategory %>
<%= tab url: solidus_friendly_promotions.admin_promotion_categories_path, label: :promotion_categories %>
<% end %>
<% if can? :admin, Spree::Promotion && Spree::Promotion.any? %>
<% if can?(:admin, Spree::Promotion) && Spree::Promotion.any? %>
<%= tab url: spree.admin_promotions_path, label: :legacy_promotions %>
<% end %>
<% if can? :admin, Spree::PromotionCategory && Spree::PromotionCategory.any? %>
<% if can?(:admin, Spree::PromotionCategory) && Spree::PromotionCategory.any? %>
<%= tab url: spree.admin_promotion_categories_path, label: :legacy_promotion_categories %>
<% end %>
</ul>

0 comments on commit 8921db4

Please sign in to comment.