Skip to content

Commit

Permalink
Remove 'Administration' dropdown for superadmins operating as org admins
Browse files Browse the repository at this point in the history
  • Loading branch information
jp524 committed May 22, 2024
1 parent b4043f0 commit 6ba8161
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions app/views/layouts/_lte_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
<% if current_user.has_role?(Role::SUPER_ADMIN) %>
<li class="nav-item dropdown">
<a class="nav-link" data-bs-toggle="dropdown" href="#">
<i class="fa fa-lock"></i> Administration
</a>
<ul class="dropdown-menu">
<li>
<%= navigation_link_to "Dashboard", admin_dashboard_path %>
</li>
<li>
<%= navigation_link_to "Organizations", admin_organizations_path %>
</li>
<li>
<%= navigation_link_to "Base items", admin_base_items_path %>
</li>
<li>
<%= navigation_link_to "Users", admin_users_path %>
</li>
</ul>
</li>
<% end %>

<li id="help" class="nav-item dropdown">
<%= link_to 'Need Help?', help_path, class: 'nav-link bg-yellow-400 mx-2 font-bold rounded-2xl' %>
</li>
Expand Down

0 comments on commit 6ba8161

Please sign in to comment.