Skip to content

Commit

Permalink
don't show the avo menu item if the gem isn't loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer committed Feb 13, 2025
1 parent d529448 commit fd9ae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/account/shared/menu/_user_items.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<% end %>
<% end %>

<% if current_user.developer? %>
<% if current_user.developer? && Object.const_defined?("Avo::Configuration") %>
<%= render 'account/shared/menu/item', url: main_app.avo_path, label: "Admin" do |p| %>
<% p.content_for :icon do %>
<i class="ti ti-key"></i>
Expand Down

0 comments on commit fd9ae63

Please sign in to comment.