Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update _user_dropdown.html.erb

Damian Legawiece73cd0ef7089
diff --git a/admin/app/views/spree/admin/shared/_user_dropdown.html.erb b/admin/app/views/spree/admin/shared/_user_dropdown.html.erb
index b7b72047eb..0423a17317 100644
--- a/admin/app/views/spree/admin/shared/_user_dropdown.html.erb
+++ b/admin/app/views/spree/admin/shared/_user_dropdown.html.erb
@@ -21,19 +21,6 @@
<%= link_to_with_icon 'user-scan', Spree.t('admin.edit_profile'), spree.edit_admin_profile_path, class: 'dropdown-item' %>
<% end %>
- <% if enterprise_edition? %>
- <% if try_spree_current_user.respond_to?(:accounts) && try_spree_current_user.accounts.count > 1 %>
- <div data-toggle="modal" data-target="#modal">
- <%= link_to_with_icon 'switch-3', Spree.t(:switch_team), main_app.accounts_path, class: 'dropdown-item', data: { turbo_frame: 'dialog_modal' } %>
- </div>
- <% end %>
-
- <% if defined?(app_domain) && defined?(Vendo::Account) && can?(:create, Vendo::Account) %>
- <%= link_to_with_icon 'plus', Spree.t(:create_new_team), main_app.new_account_url(host: app_domain), class: 'dropdown-item', data: { turbo: false } %>
- <% end %>
- <div class="dropdown-divider"></div>
- <% end %>
-
<% if can?(:manage, current_store) %>
<%= link_to_with_icon 'book', 'Help center', 'https://spreecommerce.org/docs/user', class: 'dropdown-item', target: '_blank' %>
<%= link_to_with_icon 'message-circle', 'Contact us', 'https://spreecommerce.org/contact/', class: 'dropdown-item', target: '_blank' %>